Skip to content

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

@harrietoxinst

Description

@harrietoxinst

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions