20 , m_customPlot(new QCustomPlot)
23 auto* vlayout =
new QVBoxLayout(
this);
24 vlayout->setMargin(0);
25 vlayout->setSpacing(0);
26 vlayout->setContentsMargins(0, 0, 0, 0);
28 m_customPlot->setAttribute(Qt::WA_NoMousePropagation,
false);
30 setStyleSheet(
"background-color:white;");
39 m_customPlot->yAxis->setScaleType(QCPAxis::stLogarithmic);
84 QPen pen(QColor(0, 0, 255, 200));
87 m_customPlot->graph()->setBrush(QBrush(QColor(255 / 4, 160, 50, 150)));
91 axisRectangle->setAutoMargins(QCP::msTop | QCP::msBottom);
92 axisRectangle->setMargins(QMargins(base_size.width() * 4, base_size.height() * 2,
93 base_size.width() * 2, base_size.height() * 2));
Defines class HistogramPlot.
Defines various constants for plotting.
void addData(double x, double y)
QCustomPlot * m_customPlot
HistogramPlot(QWidget *parent=nullptr)
void setData(const QVector< double > &x, const QVector< double > &y)
int plot_tick_label_size()
int plot_axes_label_size()
QSize SizeOfLetterM(const QWidget *widget=nullptr)
Returns size of largest letter of default system font.