16 #include <qcustomplot.h>
20 return get_values(graph, [](
auto x) {
return x.key; });
25 return get_values(graph, [](
auto x) {
return x.value; });
30 std::vector<double> result;
31 if (
auto errorBars = GetPlottable<QCPErrorBars>(graph->parentPlot()); errorBars) {
32 auto container = errorBars->data();
33 std::transform(container->begin(), container->end(), std::back_inserter(result),
34 [](
auto x) { return x.errorPlus; });
std::vector< double > binValues(const QCPGraph *graph)
Returns vector representing y-values on QCPgraph.
std::vector< double > binErrors(const QCPGraph *graph)
Returns vector representing bin errors of QCPGraph.
std::vector< double > binCenters(const QCPGraph *graph)
Returns vector representing bin centers on QCPgraph.
std::vector< double > get_values(const G *graph, T operand)
Returns vector representing bin centers/values on QCPGraph.