-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi!
Thanks for the good work on the environment/library.
I was trying to enable dynamic 2d-map plotting with QtPlot. What I need is a way to add traces one by one, i.e. sweep by sweep (which appears to be a hassle in every aspects with QCoDeS). What I tried so far is
- extract x_data, y_data, z_data as qc.DataArrays of sizes (n,) (1,), and (n,), respectively
- after the first trace, create plot2d = qc.QtPlot(x_data, y_data, z_data)
- add subsequent traces with the add method, as plot2d.add(x_data_new, y_data_new, z_data_new) (here, x_data_new, y_data_new, z_data_new are qc.DataArrays of sizes (n,) (1,), and (n,) as before)
- Then call plot2d.autorange() to keep to the original figure size.
What I want: one 2d-map plot with sweeps added one by one, position based on their y-value. One x-axis, one y-axis, one z-axis and associated colorbar get their ranges updated. (What else I want: exactly one DataSet created over the course of all the sweeps.)
The above otherwise works, but has the unexpected feature that each add-method also adds a separate colorbar, which is inconvenient if there are going to be 500 traces. I found no ways to control the colorbars (it's not done via update_colorbar = True in autorange). I failed to interface with the likes of plot.update() to get what I want, probably because I fail to employ loops to get what I want*.
*Also, any suggestions on how to natively use DataSets which allow adding data sweep by sweep would be greatly appreciated. The reason I need this is that the sweep ranges and sweep directions might change at every sweep. I also might address each trace separately later.
I'm working on an Mac, and installed qcodes a week or two ago on the machine.
Best wishes, and thanks for your time!