plotly.py
plotly.py copied to clipboard
[bug] add_hline and add_vline show random diagonal line when passed np.nan
Behaviour: when add_hline() or add_vline() are called with np.nan, a diagonal line is rendered (perhaps because np.nan is a float?)
Expected: possibly raise an exception?
Minimal example:
consider passing valid numerical values as positions for the lines instead of np.nan
Thank you, I'm comfortable with how the lines work - I was raising a bug, not asking for advice. I raised this because drawing a diagonal line didn't seem to be the intended behaviour; if you don't want to fix it, then don't.
Thanks for reporting this, @al-vincent . @sonali489 thank you for trying to help @al-vincent.