Skip to content

Issue checking x-limits of lines without additional plotted data. #262

@marty-larocque

Description

@marty-larocque

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions