Some methods of plotting lines with Matplotlib do not yield xy_data. Specifically, base.get_xy() returns None when lines are plotted with some methods.
This causes an issue when calling base.assert_line(), because assert_line() checks that a line spans beyond the x-limits of the plotted data. If no data is plotted (i.e. nothing is plotted other than the line), then these x-limits cannot be determined and an error is thrown.
Here is a gist demonstrating this issue:
https://gist.github.com/ryla5068/53762a1b5770ffcb945793274d842904
This is an uncommon case, and could probably go unaddressed. We should decide whether we want to address this issue or not.
Some methods of plotting lines with Matplotlib do not yield xy_data. Specifically,
base.get_xy()returnsNonewhen lines are plotted with some methods.This causes an issue when calling
base.assert_line(), becauseassert_line()checks that a line spans beyond the x-limits of the plotted data. If no data is plotted (i.e. nothing is plotted other than the line), then these x-limits cannot be determined and an error is thrown.Here is a gist demonstrating this issue:
https://gist.github.com/ryla5068/53762a1b5770ffcb945793274d842904
This is an uncommon case, and could probably go unaddressed. We should decide whether we want to address this issue or not.