Skip to content

clean_figure() error for plot() line outside the box #578

Open
@user202729

Description

@user202729
	import matplotlib.pyplot as plt
	import tikzplotlib
	plt.xlim(0, 1)
	plt.plot([5, 6], [2, 3])
	tikzplotlib.clean_figure()

Error:

IndexError: index 0 is out of bounds for axis 0 with size 0

At least for scatter instead of plot it doesn't give the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions