Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pycodegen
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
Pipeline
#17667
passed with stage
in 20 minutes and 40 seconds
Changes
1
Pipelines
2
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
Supports
Markdown
0%
Try again
or
attach a new 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