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:
parent
80bfc3ccd5
commit
b38e2bd8ac
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user