-
Notifications
You must be signed in to change notification settings - Fork 343
Description
When using the plot_dataset function, all plots for a given dataset are generated i.e. a new axis is created for each dependent parameter in the dataset.
For example, in the Offline Plotting Tutorial - Two interleaved 1D sweeps two parameters y and y2 are measured as a function of the same parameter x. Using plot_dataset then results in:
where two plots are generated for the two dependent parameters. I understand there is a way to plot these two on the same graph but is there a way to only plot one of these parameters from the plot_dataset function?
Removing the setpoint x from parameter y at the point of registering the parameter would achieve this since y is no longer dependent on x so won't get plotted. However, in the case of using a dond sweep function I believe the setpoint dependencies are automatically assigned to any of the param_meas parameters and so removing the setpoint is not possible. For example, in a 2D sweep you may be recording time data (along with various other dependent parameters) at each step but it's not necessarily relevant to then see a 2D plot with time when you plot the dataset. Besides, there may be cases where a parameter is legitimately dependent on another but you don't want to generate the plot for it. Therefore, my question is would there be any interest in adding an optional argument to the plot_dataset function such that a user could control which parameters are plotted?
I have tried to implement this such that using e.g. plot_dataset(dataset, parameters=['y2']) will only generate the plot for y2 (default behaviour of plot_dataset remains unchanged).
