Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
328f91c3
Commit
328f91c3
authored
Dec 08, 2015
by
eric pellegrini
Browse files
bug fix with cross plot legends
parent
55d72a4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/Framework/Plugins/Plotter/Plotter2D.py
View file @
328f91c3
...
...
@@ -332,8 +332,8 @@ class Plotter2D(wx.Panel):
v_tmp_plot
=
self
.
v_cross_slice_plot
.
plot
(
self
.
Xaxis
*
self
.
Xunit_conversion_factor
,
vslice
,
color
=
'%s'
%
self
.
get_circular_color
(
self
.
cross_slice_color_index
))
h_tmp_plot
=
self
.
h_cross_slice_plot
.
plot
(
self
.
Yaxis
*
self
.
Yunit_conversion_factor
,
hslice
,
color
=
'%s'
%
self
.
get_circular_color
(
self
.
cross_slice_color_index
))
self
.
v_cross_slice_legend
.
append
([
v_tmp_plot
[
0
],
'%s = %8.3f'
%
(
self
.
X
label
,
x
)])
self
.
h_cross_slice_legend
.
append
([
h_tmp_plot
[
0
],
'%s = %8.3f'
%
(
self
.
Y
label
,
y
)])
self
.
v_cross_slice_legend
.
append
([
v_tmp_plot
[
0
],
'%s = %8.3f'
%
(
self
.
Y
label
,
y
)])
self
.
h_cross_slice_legend
.
append
([
h_tmp_plot
[
0
],
'%s = %8.3f'
%
(
self
.
X
label
,
x
)])
self
.
v_cross_slice_plot
.
set_xlabel
(
self
.
Xlabel
+
self
.
fmt_Xunit
)
self
.
h_cross_slice_plot
.
set_xlabel
(
self
.
Ylabel
+
self
.
fmt_Yunit
)
...
...
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