snu-quiqcl / iquip

Ion trap Quantum computing User Interface Project
GNU General Public License v3.0
7 stars 0 forks source link

2D data viewer renders data points at the wrong position #299

Closed kangz12345 closed 6 months ago

kangz12345 commented 7 months ago

Describe the bug

When we select y axis as well, i.e., plot a 2D image, the dataviewer app renders the points at the wrong position. The axes values are correct, but maybe the indices are switched. For example, consider the following 2D scan:

Expected behavior

Each data point should be rendered at its right place.

To Reproduce

Steps to reproduce the behavior:

  1. Open iquip and run a 2D scan experiment.
  2. Set X and Y axis in dataviewer.
  3. See the rendered image (2D plot).

Expected causes and correction methods

Maybe some mistakes took place while drawing an image.