Skip to content

array parameter 2d plot axis choice #266

@nataliejpg

Description

@nataliejpg

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)
    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:
capture-1

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
capture3w

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

Same system works fine for 1d plot axis switching in tutorial notebook

System

T5 (windows)
driver/rohde_schwarz_ZNB20

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions