Ulm-IQO / qudi-iqo-modules

A collection of qudi measurement modules originally developed for experiments on colorcenters in semiconductor materials.
GNU General Public License v3.0
10 stars 27 forks source link

[New Feature] Single axis plot for two channels with same units in time series gui #124

Open takuya-ulm opened 6 months ago

takuya-ulm commented 6 months ago

Feature Description

Currently, when the active channels are two with the same unit, the left axis is used for the first channel and the right one is used for the second channel automatically.

20240301_time_series

This is caused by the assignment of the axes in update_channel_settings below:

https://github.com/Ulm-IQO/qudi-iqo-modules/blob/6cd2ff89143e6d45f2c5b35c09c91d2d73ab9818/src/qudi/gui/time_series/time_series_gui.py#L293-L358

I would like to see them with the same single axis to compare the two values.

Related Problem

No response

Considered Alternatives

The channel states in the ChannelSettingsDialog can be used to assign the axes. For example, introduce 'Axis?' containing 'left' or 'right' or 'not shown' and assin the axis accordingly.

If two channels with different units are assigned to each axis, you can see them in each axis. If several channels with the same units are assigned to one axis, you can compare them in the same axis. If you want to focus one of them, you can assign it one axis and set the rest 'not shown' in the axis. Then, you can read that value. If you are checking the stability of a value and not caring about the absolute value, you can also set it 'not shown'.

Additional Context

So far, all the data is plotted in one plot, this may be extended to several plots in a similar way.
By adding another parameter 'plot number' in the ChannelSettingsDialog, you can assign them to different plots.

Contact Details

takuya.kitamura@uni-ulm.de