varLib.plot: use plot, not plot_wireframe, as we are using 1D lists

plot_wireframe requires 2D arrays.

In recent versions of matplotlib passing a 1D array fails with an error:

https://stackoverflow.com/questions/47225830/axes3d-plot-wireframex-y-z-error

https://github.com/matplotlib/matplotlib/pull/5166
https://github.com/matplotlib/matplotlib/issues/3116
This commit is contained in:
Cosimo Lupo 2018-06-06 12:43:05 +01:00
parent 80bfc3ccd5
commit b38e2bd8ac
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482

View File

@ -63,7 +63,7 @@ def plotLocationsSurfaces(locations, fig, names=None, **kwargs):
X.append(x)
Y.append(y)
Z.append(z)
axis3D.plot_wireframe(X, Y, Z, color=color, **kwargs)
axis3D.plot(X, Y, Z, color=color, **kwargs)
for y in stops(Ys):
X, Y, Z = [], [], []
for x in Xs:
@ -71,7 +71,7 @@ def plotLocationsSurfaces(locations, fig, names=None, **kwargs):
X.append(x)
Y.append(y)
Z.append(z)
axis3D.plot_wireframe(X, Y, Z, color=color, **kwargs)
axis3D.plot(X, Y, Z, color=color, **kwargs)
plotLocations(model.locations, [ax1, ax2], axis3D)