Skip to content

Commit ed07081

Browse files
committed
added more helpful error message when clean_figure fails due to data outside of plot
1 parent 9ee50c4 commit ed07081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tikzplotlib/_cleanfigure.py

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

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

0 commit comments

Comments
 (0)