Skip to content

Commit

Permalink
more informative warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodore Lindsay committed Nov 29, 2017
1 parent 0466665 commit fe637ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion figurefirst/svg_to_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,9 @@ def __init__(self, layout_filename, autogenlayers=True,make_mplfigures = False,
# for now
#assert self.layout_user_sx == self.layout_user_sy
if np.abs(self.layout_user_sx[0] - self.layout_user_sy[0]) > figurefirst_user_parameters.rounding_tolerance:
warnings.warn('The scaling defined by the scaling of the user units in x and y are different. Results may be unexpected')
warnings.warn("""The the scaling of the user units in x and y are different and may result in unexpected
behavior. Make sure that the aspect ratio defined by the viewbox attribute of the root
SVG node is the same as that given by the document hight and width.""")
if make_mplfigures:
self.make_mplfigures()

Expand Down

0 comments on commit fe637ae

Please sign in to comment.