Draw an RGBA image. Parameters ---------- gc : `.GraphicsContextBase` A graphics context with clipping information. x : float The distance in physical units (i.e., dots or pixels) from the left hand side of the canvas.
(self, gc, x, y, im, transform=None)
| 436 | return 1.0 |
| 437 | |
| 438 | def draw_image(self, gc, x, y, im, transform=None): |
| 439 | """ |
| 440 | Draw an RGBA image. |
| 441 | |
| 442 | Parameters |
| 443 | ---------- |
| 444 | gc : `.GraphicsContextBase` |
| 445 | A graphics context with clipping information. |
| 446 | |
| 447 | x : float |
| 448 | The distance in physical units (i.e., dots or pixels) from the left |
| 449 | hand side of the canvas. |
| 450 | |
| 451 | y : float |
| 452 | The distance in physical units (i.e., dots or pixels) from the |
| 453 | bottom side of the canvas. |
| 454 | |
| 455 | im : (N, M, 4) array of `numpy.uint8` |
| 456 | An array of RGBA pixels. |
| 457 | |
| 458 | transform : `~matplotlib.transforms.Affine2DBase` |
| 459 | If and only if the concrete backend is written such that |
| 460 | `~.RendererBase.option_scale_image` returns ``True``, an affine |
| 461 | transformation (i.e., an `.Affine2DBase`) *may* be passed to |
| 462 | `~.RendererBase.draw_image`. The translation vector of the |
| 463 | transformation is given in physical units (i.e., dots or pixels). |
| 464 | Note that the transformation does not override *x* and *y*, |
| 465 | and has to be applied *before* translatingthe result by |
| 466 | *x* and *y* (this can be accomplished by adding *x* |
| 467 | and *y* to the translation vector defined by *transform*). |
| 468 | """ |
| 469 | raise NotImplementedError |
| 470 | |
| 471 | def option_image_nocomposite(self): |
| 472 | """ |
no outgoing calls
no test coverage detected