Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 079b2bb

Browse filesBrowse files
committed
Update draw_image API doc
1 parent 35195cc commit 079b2bb
Copy full SHA for 079b2bb

File tree

1 file changed

+7
-1
lines changed
Filter options

1 file changed

+7
-1
lines changed

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
+7-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.