-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Screenshot
[add screenshots of your problem]

Problem description
When inserting a string that cannot be converted to a floating point number (e.g. 70,01 instead of 70.01), the mark is created and appears on the plot, but it not added to straditize.
Expected Output
Straditize should directly give an error to inform about the invalid number. Instead, this is printed to the terminal:
Terminal output
Traceback (most recent call last):
File "/Users/psommer/miniconda/envs/work/lib/python3.7/site-packages/matplotlib/cbook/__init__.py", line 215, in process
func(*args, **kwargs)
File "/Users/psommer/Documents/myplots-scripts/straditize/straditize/straditizer.py", line 123, in ret
new_marks = _new_mark(event.xdata, event.ydata)
File "/Users/psommer/Documents/myplots-scripts/straditize/straditize/straditizer.py", line 128, in _new_mark
new_marks = func((x, y), **kwargs)
File "/Users/psommer/Documents/myplots-scripts/straditize/straditize/straditizer.py", line 815, in new_mark
ret.ask_for_value(initial, label)
File "/Users/psommer/Documents/myplots-scripts/straditize/straditize/cross_mark.py", line 1139, in ask_for_value
self.value = self.dtype(value)
ValueError: could not convert string to float: '70,01'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels