The Image class whose size is determined by the given bbox. Parameters ---------- bbox : BboxBase or Callable[RendererBase, BboxBase] The bbox or a function to generate the bbox .. warning :: If using `matplotlib.artist.Artist.get_window_extent` as the
| 1408 | |
| 1409 | |
| 1410 | class BboxImage(_ImageBase): |
| 1411 | """ |
| 1412 | The Image class whose size is determined by the given bbox. |
| 1413 | |
| 1414 | Parameters |
| 1415 | ---------- |
| 1416 | bbox : BboxBase or Callable[RendererBase, BboxBase] |
| 1417 | The bbox or a function to generate the bbox |
| 1418 | |
| 1419 | .. warning :: |
| 1420 | |
| 1421 | If using `matplotlib.artist.Artist.get_window_extent` as the |
| 1422 | callable ensure that the other artist is drawn first (lower zorder) |
| 1423 | or you may need to renderer the figure twice to ensure that the |
| 1424 | computed bbox is accurate. |
| 1425 | |
| 1426 | cmap : str or `~matplotlib.colors.Colormap`, default: :rc:`image.cmap` |
| 1427 | The Colormap instance or registered colormap name used to map scalar |
| 1428 | data to colors. This parameter is ignored if X is RGB(A). |
| 1429 | norm : str or `~matplotlib.colors.Normalize` |
| 1430 | Maps luminance to 0-1. This parameter is ignored if X is RGB(A). |
| 1431 | interpolation : str, default: :rc:`image.interpolation` |
| 1432 | Supported values are 'none', 'auto', 'nearest', 'bilinear', |
| 1433 | 'bicubic', 'spline16', 'spline36', 'hanning', 'hamming', 'hermite', |
| 1434 | 'kaiser', 'quadric', 'catrom', 'gaussian', 'bessel', 'mitchell', |
| 1435 | 'sinc', 'lanczos', 'blackman'. |
| 1436 | origin : {'upper', 'lower'}, default: :rc:`image.origin` |
| 1437 | Place the [0, 0] index of the array in the upper left or lower left |
| 1438 | corner of the Axes. The convention 'upper' is typically used for |
| 1439 | matrices and images. |
| 1440 | filternorm : bool, default: True |
| 1441 | A parameter for the antigrain image resize filter |
| 1442 | (see the antigrain documentation). |
| 1443 | If filternorm is set, the filter normalizes integer values and corrects |
| 1444 | the rounding errors. It doesn't do anything with the source floating |
| 1445 | point values, it corrects only integers according to the rule of 1.0 |
| 1446 | which means that any sum of pixel weights must be equal to 1.0. So, |
| 1447 | the filter function must produce a graph of the proper shape. |
| 1448 | filterrad : float > 0, default: 4 |
| 1449 | The filter radius for filters that have a radius parameter, i.e. when |
| 1450 | interpolation is one of: 'sinc', 'lanczos' or 'blackman'. |
| 1451 | resample : bool, default: False |
| 1452 | When True, use a full resampling method. When False, only resample when |
| 1453 | the output image is larger than the input image. |
| 1454 | **kwargs : `~matplotlib.artist.Artist` properties |
| 1455 | |
| 1456 | """ |
| 1457 | def __init__(self, bbox, |
| 1458 | *, |
| 1459 | cmap=None, |
| 1460 | norm=None, |
| 1461 | colorizer=None, |
| 1462 | interpolation=None, |
| 1463 | origin=None, |
| 1464 | filternorm=True, |
| 1465 | filterrad=4.0, |
| 1466 | resample=False, |
| 1467 | **kwargs |
no outgoing calls
searching dependent graphs…