Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[feature request] option to control which parameters are plotted in plot_dataset #6898

Open
harrietoxinst opened this issue Feb 21, 2025 · 0 comments · May be fixed by #6931
Open

[feature request] option to control which parameters are plotted in plot_dataset #6898

harrietoxinst opened this issue Feb 21, 2025 · 0 comments · May be fixed by #6931

Comments

@harrietoxinst
Copy link

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:

Image

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant