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

Skip to content

Commit 0f809f8

Browse files
committed
Update draw_image API doc
1 parent 0740cb6 commit 0f809f8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/matplotlib/backend_bases.py

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

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

0 commit comments

Comments
 (0)