Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8520a10

Browse files
committed
Remove different handling for nonaffine transforms
1 parent 398be5f commit 8520a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def _make_image(self, A, in_bbox, out_bbox, clip_bbox, magnification=1.0,
423423
# So that the image is aligned with the edge of the Axes, we want to
424424
# round up the output width to the next integer. This also means
425425
# scaling the transform slightly to account for the extra subpixel.
426-
if ((not unsampled) and t.is_affine and round_to_pixel_border and
426+
if ((not unsampled) and round_to_pixel_border and
427427
(out_width_base % 1.0 != 0.0 or out_height_base % 1.0 != 0.0)):
428428
out_width = math.ceil(out_width_base)
429429
out_height = math.ceil(out_height_base)

0 commit comments

Comments
 (0)