Skip to content

Commit

Permalink
more verbose warning message for transformation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nschloe committed Oct 2, 2015
1 parent ecc39c0 commit ba15352
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions matplotlib2tikz.py
Expand Up @@ -673,8 +673,12 @@ def _transform_to_data_coordinates(obj, xdata, ydata):
)
points_data = transform.transform(points)
xdata, ydata = zip(*points_data)
except:
print('Problem during transformation, continuing with original data')
except Exception as e:
print(('Problem during transformation:\n' +
' %s\n' +
'Continuing with original data.')
% e
)
return (xdata, ydata)


Expand Down

0 comments on commit ba15352

Please sign in to comment.