Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jan Zelenka
prasopes
Commits
adac2628
Commit
adac2628
authored
Sep 26, 2019
by
3Yan
Browse files
Manual annotation - fix2
* fixed duplicities when working with multiple lines
parent
15e54c34
Changes
1
Hide whitespace changes
Inline
Side-by-side
prasopes/graphtools.py
View file @
adac2628
...
...
@@ -292,11 +292,12 @@ def pop_plot(xdata, ydata, plot, plot_data, colornum=0, legend=None):
plot
.
set_ylim
(
plot
.
get_ylim
()[
1
]
*
-
0.01
,
plot
.
get_ylim
()[
1
]
*
1.1
)
plot
.
ticklabel_format
(
scilimits
=
(
0
,
0
),
axis
=
'y'
)
if
"texts"
in
plot_data
:
oldtexts
=
plot_data
[
'texts'
]
#put hardcoded annotation if there is none
if
"texts"
in
plot_data
and
not
any
(
data
in
plot
.
get_children
()
for
data
in
plot_data
[
'texts'
]):
plot_data
[
'texts'
]
=
[
plot
.
annotate
(
a
.
get_text
(),
a
.
xy
,
picker
=
True
,
bbox
=
ann_bbox
)
for
a
in
old
texts
]
for
a
in
plot_data
[
'
texts
'
]
]
if
"annotation"
in
plot_data
:
ann_spec
(
plot
,
plot_data
)
if
"xtics"
in
plot_data
:
...
...
Write
Preview
Supports
Markdown
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