Hi
Seems like QCPAbstractPlottable::rescaleAxes() only makes sure that all plottables are visible, while it does not make sure all items are visible as well.
My use case is: The user selects a plot and I add an item containing more information about selected point. The problem is that I need to rescale the plot in order for the added item not too be cut off by the edges of the plot. The user has the option to switch the axis from linear to logarithmic, so it becomes tricky to know how much to manually scale the axis with.
Is there a way to do this automatically?
There is always the possibility that its because of the way I add the item. To rule that out, this is how I add the item:
QCPItemText *improvement_text = new QCPItemText(this); addItem("some text:); improvement_text->position->setParentAnchor(some point on the selected item);
Thanks