73 const QString &x_axis_label,
74 const QString &y_axis_label);
78 virtual void setGraphData(
int graph_index,
79 const std::vector<double> &keys,
80 const std::vector<double> &values);
82 virtual void setGraphData(QCPGraph *graph_p,
83 const std::vector<double> &keys,
84 const std::vector<double> &values);
86 virtual void clearGraphData(
int graph_index);
88 virtual void axisDoubleClickHandler(QCPAxis *axis,
89 QCPAxis::SelectablePart part,
90 QMouseEvent *event)
override;
94 virtual void axisRescale()
override;
95 virtual void axisReframe()
override;
96 virtual void axisZoom()
override;
97 virtual void axisPan()
override;
99 virtual QCPGraph *addGraphPlot(
const Trace &trace,
const QColor &color);
100 virtual QCPBars *addBarsPlot(
const Trace &bars,
const QColor &color);
103 findIntegrationLowerRangeForKey(
int index,
double key, QCPRange &range);
105 std::vector<double> getValuesX(
int index)
const;
106 std::vector<double> getValuesY(
int index)
const;
108 QCPRange getValueRangeOnKeyRange(QCPAbstractPlottable *plottable_p,
bool &ok);
109 QCPRange getValueRangeOnKeyRange(
int index,
bool &ok);
111 double getYatX(
double x, QCPGraph *graph_p);
114 double getYatX(
double x,
int index = 0);
116 Trace toTrace(
int index,
bool only_visible_range =
false)
const;
117 Trace toTrace(
const QCPGraph *graph_p,
bool only_visible_range =
false)
const;
118 Trace toTrace(
const QCPRange &x_axis_range,
int index)
const;
119 Trace toTrace(
const QCPRange &x_axis_range,
const QCPGraph *graph_p)
const;
120 Trace toTrace(
const QCPRange &x_axis_range,
const QCPBars *bars_p)
const;
121 Trace toTrace(
const QCPRange &x_axis_range,
const QCPAbstractPlottable *plottable_p)
const;
122 Trace toTrace(
const QCPAbstractPlottable *plottable_p)
const;