in our application I would like to implement a fuctionality that enables zoom to screen size. That means, if I click on a button, the plot widget is zoomed in a way that all data and all plottables and all items fit on screen.
rescale() function of the
QCPAxis only considers plottables. That means if I use the
rescale() function of X and Y axes, I can scale the plot in a way that all plottables fit on screen. But
rescale() ignores the items like
QCPItemText. Is there any function to get the bounding rectangle for all QCPLayerables including plottables and items to zoom the plot including all elements to screen size?