You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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).
The text was updated successfully, but these errors were encountered:
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
andy2
are measured as a function of the same parameterx
. Usingplot_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 parametery
at the point of registering the parameter would achieve this sincey
is no longer dependent onx
so won't get plotted. However, in the case of using adond
sweep function I believe the setpoint dependencies are automatically assigned to any of theparam_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 theplot_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 fory2
(default behaviour ofplot_dataset
remains unchanged).The text was updated successfully, but these errors were encountered: