Skip to content

Commit cd503f8

Browse files
authored
Merge pull request #514 from vthuongt/main
added more helpful error message when clean_figure fails
2 parents 9ee50c4 + a225d47 commit cd503f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tikzplotlib/_cleanfigure.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,9 @@ def _move_points_closer(xLim, yLim, data):
752752

753753
dataInsert = np.array([[]])
754754
if not _isempty(id_replace):
755-
raise NotImplementedError
755+
raise NotImplementedError(
756+
"There is data outside of the box. Don't know how to handle during cleaning. Please check if x/ylim is to tight"
757+
)
756758
data = _insert_data(data, id_replace, dataInsert)
757759
if _isempty(id_replace):
758760
return data

0 commit comments

Comments
 (0)