Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Bindgen
pystencils
Commits
ddbe84da
Commit
ddbe84da
authored
Aug 30, 2019
by
Martin Bauer
Browse files
Guard for 3D axis equal (not supported in backend used for unittests)
parent
73eb95e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/stencil.py
View file @
ddbe84da
...
...
@@ -419,7 +419,10 @@ def plot_3d(stencil, figure=None, axes=None, data=None, textsize='8'):
if
figure
is
None
:
figure
=
plt
.
figure
()
axes
=
figure
.
gca
(
projection
=
'3d'
)
axes
.
set_aspect
(
"equal"
)
try
:
axes
.
set_aspect
(
"equal"
)
except
NotImplementedError
:
pass
if
data
is
None
:
data
=
[
None
]
*
len
(
stencil
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment