Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
user202729 opened this issue Mar 30, 2023 · 0 comments
Open

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

user202729 opened this issue Mar 30, 2023 · 0 comments

Comments

@user202729
Copy link

	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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant