WPI-SurfMet-Lab / Multiscale-Statistical-Analysis

Multiscale regression/discrimination analysis software, which uses multiscale area data exported from MountainsMap®.
https://www.surfacemetrology.org/
MIT License
2 stars 0 forks source link

Attempting to graph surfaces with varying scales throws ValueError: x and y must be the same size #86

Closed MatthewSpofford closed 4 years ago

MatthewSpofford commented 4 years ago

Error occurs when attempting to graph surfaces with varying scale values.

Traceback (most recent call last):
  File "src/multi_stat_analysis/__main__.py", line 201, in OnScalePlot
    gdlg.get_graph().draw_plot()
  File "C:\workspace\Multiscale-Statistical-Analysis\src\multi_stat_analysis\CanvasPanel.py", line 640, in draw_plot
    scatterList.append(self.get_axes().scatter(self.get_x(), np.log10(yvals), marker="o", s=8))
  File "C:\Program Files\Python38\lib\site-packages\matplotlib\__init__.py", line 1566, in inner
    return func(ax, *map(sanitize_sequence, args), **kwargs)
  File "C:\Program Files\Python38\lib\site-packages\matplotlib\cbook\deprecation.py", line 358, in wrapper
    return func(*args, **kwargs)
  File "C:\Program Files\Python38\lib\site-packages\matplotlib\axes\_axes.py", line 4391, in scatter
    raise ValueError("x and y must be the same size")
ValueError: x and y must be the same size

Blocked By: #87