15 #ifndef BORNAGAIN_GUI_VIEW_INSTRUMENT_DISTRIBUTIONPLOT_H
16 #define BORNAGAIN_GUI_VIEW_INSTRUMENT_DISTRIBUTIONPLOT_H
19 #include <qcustomplot.h>
53 void setPlotRange(
const QPair<double, double>& xRange,
const QPair<double, double>& yRange);
54 void plotBars(
const QVector<double>& xbars,
const QVector<double>& ybars);
55 void plotFunction(
const QVector<double>& xFunc,
const QVector<double>& yFunc);
57 const QColor& color = Qt::blue);
The CautionSign controls appearance of CautionSignWidget on top of parent widget.
The DistributionPlot class plots 1d functions corresponding to domain's Distribution1D.
void plotFunction(const QVector< double > &xFunc, const QVector< double > &yFunc)
void setShowMouseCoords(bool b)
void plotLimits(const RealLimits &limits)
Plots red line denoting lower and upper limits, if any.
void plotVerticalLine(double xMin, double yMin, double xMax, double yMax, const QColor &color=Qt::blue)
CautionSign * m_cautionSign
void plot_single_value()
Plots a single bar corresponding to the value in DistributionNoteItem.
QPoint positionForCautionSign()
void plot_distributions()
DistributionPlot(QWidget *parent=nullptr)
void onMouseMove(QMouseEvent *event)
Generates label with current mouse position.
void init_plot()
Clears all plottables, resets axes to initial state.
void plot_multiple_values()
void setXAxisName(const QString &xAxisName)
void plotBars(const QVector< double > &xbars, const QVector< double > &ybars)
DistributionItem * m_item
void setItem(DistributionItem *item)
void setPlotRange(const QPair< double, double > &xRange, const QPair< double, double > &yRange)
void onMousePress(QMouseEvent *event)
void resetView()
Reset zoom range to initial state.
Base class for a GUI data item.