- I have a simple scatter plot.
- The plot is dynamic - i.e. data that are plotted change depending on selection in a widget.
- Its size is not fixed (using stretch_both in the layout).
I would like to place a Label in the plot that would display the correlation coefficient of the data currently displayed. The Label should change every time different data is selected.
The issue I have is, that since I do not know the size of the plot in screen coordinates beforehand (see point 3) I cannot place the label in a location I want (i.e. somewhere roughly in the upper right corner), using screen coordinates. Also, since the plot is dynamic, I cannot use data coordinates to place the Label.
Is there any way to resolve this ?