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
2c2f5ccc
Commit
2c2f5ccc
authored
Jun 15, 2016
by
Sebastian Heimann
Browse files
plot solution: change beachball plotting exception into warning
parent
72d6ee34
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plot.py
View file @
2c2f5ccc
...
...
@@ -618,14 +618,18 @@ def draw_solution_figure(
(
8.
,
m_dc
,
ratio_dc
,
None
)]:
if
ratio
!=
0.0
:
beachball
.
plot_beachball_mpl
(
mt_part
,
axes
,
beachball_type
=
'full'
,
position
=
(
1.
+
xpos
,
ypos
),
size
=
0.9
*
size0
*
math
.
sqrt
(
ratio
),
size_units
=
'data'
,
color_t
=
color_t
,
linewidth
=
1.0
)
try
:
beachball
.
plot_beachball_mpl
(
mt_part
,
axes
,
beachball_type
=
'full'
,
position
=
(
1.
+
xpos
,
ypos
),
size
=
0.9
*
size0
*
math
.
sqrt
(
ratio
),
size_units
=
'data'
,
color_t
=
color_t
,
linewidth
=
1.0
)
except
beachball
.
BeachballError
,
e
:
logger
.
warn
(
str
(
e
))
else
:
axes
.
annotate
(
...
...
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