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
Sebastian Heimann
grond
Commits
3fb3edbf
Commit
3fb3edbf
authored
Jun 17, 2016
by
Sebastian Heimann
Browse files
better handling of beachball plotting errors
parent
2c2f5ccc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plot.py
View file @
3fb3edbf
...
...
@@ -617,7 +617,7 @@ def draw_solution_figure(
(
6.
,
m_clvd
,
ratio_clvd
,
'+'
),
(
8.
,
m_dc
,
ratio_dc
,
None
)]:
if
ratio
!=
0.0
:
if
ratio
>
1e-4
:
try
:
beachball
.
plot_beachball_mpl
(
mt_part
,
axes
,
...
...
@@ -631,6 +631,14 @@ def draw_solution_figure(
except
beachball
.
BeachballError
,
e
:
logger
.
warn
(
str
(
e
))
axes
.
annotate
(
'ERROR'
,
xy
=
(
1.
+
xpos
,
ypos
),
ha
=
'center'
,
va
=
'center'
,
color
=
'red'
,
fontsize
=
fontsize
)
else
:
axes
.
annotate
(
'N/A'
,
...
...
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