File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -234,9 +234,13 @@ def get_datalim(self, transData):
234
234
# (i.e. like scatter). We can't uniquely set limits based on
235
235
# those shapes, so we just set the limits based on their
236
236
# location.
237
- # Finish the transform:
238
- offsets = (transOffset .get_affine () +
239
- transData .inverted ()).transform (offsets )
237
+ print ('Hiiii' , (transOffset == transData ))
238
+
239
+ if not (transOffset .is_affine and (transOffset == transData )):
240
+ # Finish the transform started above, but only
241
+ # if we have to (to save floating point precision)
242
+ offsets = (transOffset .get_affine () +
243
+ transData .inverted ()).transform (offsets )
240
244
offsets = np .ma .masked_invalid (offsets )
241
245
if not offsets .mask .all ():
242
246
points = np .row_stack ((offsets .min (axis = 0 ),
You can’t perform that action at this time.
0 commit comments