silx-kit / silx

silx toolkit
http://www.silx.org/doc/silx/latest/
MIT License
130 stars 73 forks source link

Pymca-like display of legends? #2009

Closed mguijarr closed 6 years ago

mguijarr commented 6 years ago

Users would like to see legends like in PyMCA, under Plot1D without the need to click on 'options' then 'legends', and with a compact view.

vallsv commented 6 years ago

We think about reworking this button as a set of icons in the tooltips.

Anyway, silx is a toolkit not an application, we maybe not have the same users and the same needs. I am afraid you consider using our widgets without integration on your side.

vasole commented 6 years ago

If that can be called programmatically I guess it is the instantiating program the one that has to take the responsibility to show the legends dockwidget.

vasole commented 6 years ago

@mguijarr

Plot1D behaves exactly like PyMca concerning the operations to show the legends so your users should be used to it.

mguijarr commented 6 years ago

@vallsv We appreciate a lot silx, and we are already doing integration with the toolkit... However we are also at the forefront of remarks from users, and this issue (and the previous one I added) is an attempt to tell you what users are asking to us. Please don't blame the messenger.

So, about legends display, I took a picture of pymca from the web and you can see the compact representation of the legend below the graph (you can see Data, Fit, Continuum, etc) :

detail-de-la-fenetre-pymca-mcaadvancedfit-onglet-graph ppm

I think we can agree the Plot1D widget at the moment displays legends very differently ?

@vasole: maybe behaviour is the same, but it does not look the same and I report to you our users prefer the pymca look and feel. Don't forget our users are your users too ;-)

vasole commented 6 years ago

That behavior was lost when dropping PyQwt. That means something like four years ago!!!

Current silx behavior is the same as PyMca.

The only thing silx is not respecting concerning the legends it is what I have reflected in issue #2011

vasole commented 6 years ago

This is how it looks now in PyMca.

image

vasole commented 6 years ago

The Qwt look and feel was nice when having a few curves. However, when having many curves, the legends were eating most of the plot space. Current way is safer in that sense besides paving the way to future improvements like replacing the contents of the legends widget by a tree widget with access to all the properties of the curves (as it is done with the 3D objects in the silx 3D visualization widgets)

vallsv commented 6 years ago

Then this issue is about embedding legends in the plot? Is that a duplication with #1447?

t20100 commented 6 years ago

@mguijarr thanks for the feedback. We do need feedback from users. I think we all first misunderstood as the legend display in silx comes from the one in the current version of PyMca... the screenshot makes it clear.

Anyway, there is a need for a compact legend display (2nd issue on the subject with #1447)

mretegan commented 6 years ago

+1 for an alternative way to display the legend

I believe it is natural to expect the legend to be on the plot canvas; think about how most plots are displayed in publications. This would also help when the plot is saved to file.

vasole commented 6 years ago

When thinking about publications, you need more than that:

image