1#include "HistogramPlotWindow.h"
3#include <qwt_scale_engine.h>
8#include "HistogramItem.h"
21 QwtText frequencyLabel(QString(
"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);
This is the (qwt) plot item for a histogram.
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.
PlotWindow(QString title, PlotCurve::Units xAxisUnits, PlotCurve::Units yAxisUnits, QWidget *parent, MenuOptions optionsToProvide=AllMenuOptions)
This constructs a plot window.
QwtPlot * plot()
Get the plot encapsulated by this PlotWindow.
This is free and unencumbered software released into the public domain.