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

Skip to content
Prev Previous commit
Next Next commit
get proper renderer width and height in FigureImage
  • Loading branch information
jklymak committed Sep 19, 2017
commit 22091d6a1a0e286608e11e0206893afb22ef5512
2 changes: 1 addition & 1 deletion lib/matplotlib/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ def make_image(self, renderer, magnification=1.0, unsampled=False):

return self._make_image(
self._A, bbox, bbox, clip, magnification=magnification / fac,
unsampled=False, round_to_pixel_border=False)
unsampled=unsampled, round_to_pixel_border=False)

def set_data(self, A):
"""Set the image array."""
Expand Down