Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ESS_GUI: Model label on plot keeps being reset #1616

Closed
smk78 opened this issue Jul 6, 2020 · 4 comments · Fixed by #1745
Closed

ESS_GUI: Model label on plot keeps being reset #1616

smk78 opened this issue Jul 6, 2020 · 4 comments · Fixed by #1745
Assignees
Labels
Defect Bug or undesirable behaviour Plotting Concerns plotting functionality
Milestone

Comments

@smk78
Copy link
Contributor

smk78 commented Jul 6, 2020

Noticed by User EmilyE on Mac. Verified by @smk78 on Windows. Using 5.0.2.

Matplotlib really, really, doesn't like long dataset names. If you display such a dataset the actual graph gets squashed up in favour of displaying the legend! Like this:
image
You can use Modify Plot Property for each dataset on the plot to change the label for that data to something more manageable, for example
image
But, if you then change any parameter in the model, forcing a re-draw, the model label gets reset, like this:
image
Which is very irritating!

Modify Plot Property doesn't seem to give any control of the font size of legend text?

As a more general comment, I think the default font size of legend text could be reduced. Maybe by two font sizes?

@smk78 smk78 added Defect Bug or undesirable behaviour SasView Bug Fixing labels Jul 6, 2020
@smk78 smk78 added this to the SasView 5.0.4 milestone Jul 6, 2020
@smk78
Copy link
Contributor Author

smk78 commented Aug 26, 2020

This foible, together with points 5) & 6) in #1584, have been driving me mad this week!

@RichardHeenan
Copy link
Contributor

This foible, together with points 5) & 6) in #1584, have been driving me mad this week!

The work-around for the residuals re-plot is to drag the residuals plot down or sideways in the new "expanding screen".

@wpotrzebowski wpotrzebowski added the Plotting Concerns plotting functionality label Jan 12, 2021
@butlerpd
Copy link
Member

can @krzywon or @rozyczko verify that the second problem has been fixed? My test with one of our hackathon PR shows that once I change the label from the file name to something else, that new value sticks no matter how many replots are done including a full fit. The first issue is still an issue but maybe that is also addressed with some file name work @krzywon?

@wpotrzebowski wpotrzebowski self-assigned this Jan 15, 2021
@wpotrzebowski
Copy link
Contributor

@butlerpd On OSX it still seems to be resetting whenever I change parameter value or fit. This may be because code for OSX is branched from Windows in the few places (something that we did when we tried to address huge legends issue on Mac). I will take a look at this.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Defect Bug or undesirable behaviour Plotting Concerns plotting functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants