72 const QString &x_axis_label,
73 const QString &y_axis_label);
77 virtual void setGraphData(
int graph_index,
78 const std::vector<double> &keys,
79 const std::vector<double> &values);
81 virtual void setGraphData(QCPGraph *graph_p,
82 const std::vector<double> &keys,
83 const std::vector<double> &values);
85 virtual void clearGraphData(
int graph_index);
87 virtual void axisDoubleClickHandler(QCPAxis *axis,
88 QCPAxis::SelectablePart part,
89 QMouseEvent *event)
override;
93 virtual void axisRescale()
override;
94 virtual void axisReframe()
override;
95 virtual void axisZoom()
override;
96 virtual void axisPan()
override;
98 virtual QCPGraph *addGraphPlot(
const Trace &trace,
const QColor &color);
99 virtual QCPBars *addBarsPlot(
const Trace &bars,
const QColor &color);
102 findIntegrationLowerRangeForKey(
int index,
double key, QCPRange &range);
104 std::vector<double> getValuesX(
int index)
const;
105 std::vector<double> getValuesY(
int index)
const;
107 QCPRange getValueRangeOnKeyRange(QCPAbstractPlottable *plottable_p,
bool &ok);
108 QCPRange getValueRangeOnKeyRange(
int index,
bool &ok);
110 double getYatX(
double x, QCPGraph *graph_p);
113 double getYatX(
double x,
int index = 0);
115 Trace toTrace(
int index,
bool only_visible_range =
false)
const;
116 Trace toTrace(
const QCPGraph *graph_p,
bool only_visible_range =
false)
const;
117 Trace toTrace(
const QCPRange &x_axis_range,
int index)
const;
118 Trace toTrace(
const QCPRange &x_axis_range,
const QCPGraph *graph_p)
const;
119 Trace toTrace(
const QCPRange &x_axis_range,
const QCPBars *bars_p)
const;
120 Trace toTrace(
const QCPRange &x_axis_range,
const QCPAbstractPlottable *plottable_p)
const;
121 Trace toTrace(
const QCPAbstractPlottable *plottable_p)
const;