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
pycodegen
pystencils
Commits
32a60c94
Commit
32a60c94
authored
Jan 26, 2021
by
Markus Holzer
Browse files
Fix stencil plot
parent
55b9ab64
Pipeline
#29639
passed with stage
in 21 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pystencils/stencil.py
View file @
32a60c94
...
...
@@ -357,7 +357,7 @@ def plot_2d(stencil, axes=None, figure=None, data=None, textsize='12', **kwargs)
else
:
return
0
text_position
=
[
direction
[
c
]
+
position_correction
(
direction
[
c
])
for
c
in
(
0
,
1
)]
axes
.
text
(
*
text_position
,
annotation
,
verticalalignment
=
'center'
,
axes
.
text
(
x
=
text_position
[
0
],
y
=
text_position
[
1
],
s
=
annotation
,
verticalalignment
=
'center'
,
zorder
=
30
,
horizontalalignment
=
'center'
,
size
=
textsize
,
bbox
=
dict
(
boxstyle
=
text_box_style
,
facecolor
=
'#00b6eb'
,
alpha
=
0.85
,
linewidth
=
0
))
...
...
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