array parameter 2d plot axis choice
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 459
- Forks
- 359
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 73
Description
### Steps to reproduce
1. Take data for a 2d plot with an array type parameter (aka 'multidimensional' or 'hard', for me this is the trace data from a VNA - see [#243](https://github.com/qdev-dk/Qcodes/issues/243))
eg sweep time and take trace every second
2. plot it using MatPlot or QtPlot specifying x y and z variables
ie
`qc.MatPlot(data.VNA_time, data.VNA_frequency, data.VNA_magnitude)`
instead of just
`qc.MatPlot(data.VNA_magnitude)`
### Expected behaviour
Would expect the plot to have x axis time, y axis frequency and colour plot magnitude
### Actual behaviour
In MatPlot it gives an error:

In QtPlot It writes the correct names on the axes but doesnt transpose the plot and makes up values for the axes to correspond to the shape
ie `qc.MatPlot(data.VNA_magnitude)` gives

and `qc.MatPlot(data.VNA_time, data.VNA_frequency, data.VNA_magnitude)` gives

Same system works fine for 1d plot axis switching in tutorial notebook
### System
T5 (windows)
driver/rohde_schwarz_ZNB20
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the multidimensional trace case with MatPlot and QtPlot, comparing qc.MatPlot(data.VNA_magnitude) with the explicit x, y, and z call described here. Trace how MatPlot and QtPlot choose axes and orient 2D array data; done means the explicit call uses time and frequency as axes and magnitude as the color values without errors or fabricated axes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100