Commit dff3ecfd authored by Yan's avatar Yan
Browse files

Manual annotation - fix3

* fixed multiple lines issue
parent adac2628
......@@ -103,7 +103,7 @@ def textedit_factory(axis, plot_data):
None,"Enter new annotation","",
text=annotation.get_text())
if textdial[1] == True:
annotation.set_text(textdial[0])
annotation.set_text(textdial[0].replace('\\n','\n'))
if len(textdial[0]) == 0 and annotation in plot_data['texts']:
plot_data['texts'].remove(annotation)
elif annotation in plot_data['annotation']:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment