Skip to content
Snippets Groups Projects
Commit ddbe84da authored by Martin Bauer's avatar Martin Bauer
Browse files

Guard for 3D axis equal (not supported in backend used for unittests)

parent 73eb95e9
No related merge requests found
...@@ -419,7 +419,10 @@ def plot_3d(stencil, figure=None, axes=None, data=None, textsize='8'): ...@@ -419,7 +419,10 @@ def plot_3d(stencil, figure=None, axes=None, data=None, textsize='8'):
if figure is None: if figure is None:
figure = plt.figure() figure = plt.figure()
axes = figure.gca(projection='3d') axes = figure.gca(projection='3d')
axes.set_aspect("equal") try:
axes.set_aspect("equal")
except NotImplementedError:
pass
if data is None: if data is None:
data = [None] * len(stencil) data = [None] * len(stencil)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment