pymca icon indicating copy to clipboard operation
pymca copied to clipboard

[GUI] 2D scatter plot upon selection

Open woutdenolf opened this issue 4 years ago • 8 comments

Features requested for 2D scatter plots (ID21):

  1. Remember selection of plotting modes when selecting the next scan (especially vis mode and color map)
  2. Allow Auto Replace with 2D ON (or 3D for that matter)

Untitled

woutdenolf avatar Oct 02 '20 16:10 woutdenolf

Number 2 is on purpose because the plots can be very costly in terms of time (particularly 3D and scatter plots).

vasole avatar Oct 06 '20 16:10 vasole

Really difficult.

  • The properties are associated to the scatter item itself, not to the container nor to the underlying plot. The user actions affect the scatter item itself and they are transparent to the plot.

  • The visualization mode selected might be incompatible with the new data.

vasole avatar Oct 09 '20 13:10 vasole

Point 1 is addressed.

Concerning point two I am not so sure about what to do.

vasole avatar Oct 09 '20 16:10 vasole

@woutdenolf

Are you aware that a double click on a scan applies the last user action on the new scan?

It is enough to click REPLACE instead of ADD the first time to get the behavior you want via a double click.

vasole avatar Oct 09 '20 16:10 vasole

I'm aware but maybe the ID21 people were not ... I'll discuss with them.

woutdenolf avatar Oct 09 '20 16:10 woutdenolf

The double click does not work if there is a default plot defined: showing the NXdata takes priority.

Should I provide both?

vasole avatar Oct 15 '20 12:10 vasole

I guess the user selection should take priority unless it is not valid anymore for the scan you're clicking? No strong opinion on this.

woutdenolf avatar Oct 15 '20 13:10 woutdenolf

I remember another reason why the automatic options are disabled if 2D or 3D selections are enabled. The program would fire a selection signal at each table selection, therefore one signal when selecting X, one when selecting Y, one when selecting Z,...

vasole avatar Oct 15 '20 15:10 vasole