Closed jilavsky closed 2 years ago
I believe the legend location under our control, as is the S
character. Before using absolute positioning, I might see if MatPlotLib can use its own smarts to position the legend.
The legend was placed in lower-left corner since the box width is variable (depends on the longest length label text) so it is harder to position the top-right corner of the box. Lower-Left is deterministic.
The long length of the current labels is exceptional.
Tell the users to write their abstracts somewhere else.
It may be possible to ask MatPlotLib to auto-place the legend box. Perhaps using the tight_layout
method or perhaps not specifying the loc=
kwarg: https://github.com/APS-USAXS/livedata/blob/089e75cd97af02d549904f99019d7e0bb072c0b8/plot_mpl.py#L85
This was easier than expected. MatPlotLib will decide where to place the legend (in the most open space).
Remote users requested recently modifications to plot of last 10 data sets. Something to consider, if it can be done easily.
The good news is, that this clearly shows users need this image and are using it.