I want to add a label to the left of a series of subplots. In this case each plot is stacked vertically. The labels would read (a), (b), (c) etc as is common in report writing or academic output.
I was hoping I could use an equivalent approach to adding a plot title.
QCPTextElement *title = new QCPTextElement(customPlot);
customPlot->plotLayout()->insertColumn(0); // insert an empty column to the left of the axis rect
customPlot->plotLayout()->addElement(0, 0, title); // place the title in the empty cell we've just created
//finally adjust column stretchfactors
Whilst this does create a new column and adds the title, the plot now only occupies the top half of the entire layout as if a blank row were inserted below. However, row count confirms this is not the case. I am clearly misunderstanding the layout system. Can anyone identify where I've gone wrong?