QCustomPlot Discussion and Comments

Need help to addGraph to plotLayout with 2 QCPAxisRectReturn to overview

I tried to follow the example "Arranging multiple axis rects" of the layout system.
I only need two Axis Rects in vertical order. After setting up the layout and adding the two QCPAxisRect's i want to add graph's to both of them.
Before I use this two QCPAxisRect's it was simple qcustomplot->addGraph(), but now I'm not sure how to add a graph to one of the QCPAxisRects

best

When you create a graph, just pass the axes you want to use :

    QCPGraph *newGraph = new QCPGraph(yourAxisRect->axis(QCPAxis::atBottom), yourAxisRect->axis(QCPAxis::atLeft));

Think Example 17 will be me solution :-)