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

Skip to content

Commit b436f1a

Browse files
committed
Update draw_image API doc
1 parent 5df79f0 commit b436f1a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/matplotlib/backend_bases.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def get_image_magnification(self):
515515
"""
516516
return 1.0
517517

518-
def draw_image(self, gc, x, y, im):
518+
def draw_image(self, gc, x, y, im, trans=None):
519519
"""
520520
Draw the image instance into the current axes;
521521
@@ -532,6 +532,12 @@ def draw_image(self, gc, x, y, im):
532532
533533
*im*
534534
the :class:`matplotlib._image.Image` instance
535+
536+
*trans*
537+
If `option_scale_image` returns `True`, an affine
538+
transformation may also be passed to `draw_image`. It
539+
should be applied to the image, before applying the
540+
translation of `x` and `y`.
535541
"""
536542
raise NotImplementedError
537543

0 commit comments

Comments
 (0)