Skip to content

Commit

Permalink
Merge pull request #514 from vthuongt/main
Browse files Browse the repository at this point in the history
added more helpful error message when clean_figure fails
  • Loading branch information
nschloe authored Sep 30, 2021
2 parents 9ee50c4 + a225d47 commit cd503f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tikzplotlib/_cleanfigure.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,9 @@ def _move_points_closer(xLim, yLim, data):

dataInsert = np.array([[]])
if not _isempty(id_replace):
raise NotImplementedError
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"
)
data = _insert_data(data, id_replace, dataInsert)
if _isempty(id_replace):
return data
Expand Down

0 comments on commit cd503f8

Please sign in to comment.