1 #include "HistogramPlotWindow.h"     3 #include <qwt_scale_engine.h>     8 #include "HistogramItem.h"    21     QwtText frequencyLabel(
"Frequency", QwtText::PlainText);
    23     frequencyLabel.setColor(Qt::darkCyan);
    24     QFont font = frequencyLabel.font();
    25     font.setPointSize(13);
    27     frequencyLabel.setFont(font);
    28     plot()->enableAxis(QwtPlot::yRight);
    29     plot()->setAxisTitle(QwtPlot::yRight, frequencyLabel);
    32     p_dock->setAllowedAreas(Qt::AllDockWidgetAreas);
    33     p_dock->setFloating(
false);
    34     p_dock->setObjectName(
"DockWidget");
    35     p_dock->setMinimumWidth(130);
    36     addDockWidget(Qt::LeftDockWidgetArea, p_dock, Qt::Vertical);
    62     p_histItems.push_back(hi);
 HistogramPlotWindow(QString title, QWidget *parent)
Constructor, creates a new HistogramPlotWindow. 
 
void add(HistogramItem *)
Add a HistogramItem to the plot. 
 
void setPlotBackground(QColor c)
Sets the plot background color to the given color. 
 
This is the (qwt) plot item for a histogram. 
 
Namespace for ISIS/Bullet specific routines. 
 
QwtPlot * plot()
Get the plot encapsulated by this PlotWindow.