Container artist for images. Image data is displayed using `.BboxImage`. This image is meant to be positioned relative to a parent artist. Parameters ---------- arr: array-like or `PIL.Image.Image` The data to be color-coded. The interpretation depends on the
| 1156 | |
| 1157 | |
| 1158 | class OffsetImage(OffsetBox): |
| 1159 | """ |
| 1160 | Container artist for images. |
| 1161 | |
| 1162 | Image data is displayed using `.BboxImage`. This image is meant to be positioned |
| 1163 | relative to a parent artist. |
| 1164 | |
| 1165 | Parameters |
| 1166 | ---------- |
| 1167 | arr: array-like or `PIL.Image.Image` |
| 1168 | The data to be color-coded. The interpretation depends on the |
| 1169 | shape: |
| 1170 | |
| 1171 | - (M, N) `~numpy.ndarray` or masked array: values to be colormapped |
| 1172 | - (M, N, 3): RGB array |
| 1173 | - (M, N, 4): RGBA array |
| 1174 | |
| 1175 | zoom: float, default: 1 |
| 1176 | zoom factor: |
| 1177 | |
| 1178 | - no zoom: factor =1 |
| 1179 | - zoom in: factor > 1 |
| 1180 | - zoom out: 0< factor < 1 |
| 1181 | |
| 1182 | cmap : str or `~matplotlib.colors.Colormap`, default: :rc:`image.cmap` |
| 1183 | The Colormap instance or registered colormap name used to map scalar |
| 1184 | data to colors. This parameter is ignored if X is RGB(A). |
| 1185 | |
| 1186 | norm : str or `~matplotlib.colors.Normalize`, default: None |
| 1187 | Maps luminance to 0-1. This parameter is ignored if X is RGB(A). |
| 1188 | |
| 1189 | interpolation : str, default: :rc:`image.interpolation` |
| 1190 | Supported values are 'none', 'auto', 'nearest', 'bilinear', |
| 1191 | 'bicubic', 'spline16', 'spline36', 'hanning', 'hamming', 'hermite', |
| 1192 | 'kaiser', 'quadric', 'catrom', 'gaussian', 'bessel', 'mitchell', |
| 1193 | 'sinc', 'lanczos', 'blackman'. |
| 1194 | |
| 1195 | origin : {'upper', 'lower'}, default: :rc:`image.origin` |
| 1196 | Place the [0, 0] index of the array in the upper left or lower left |
| 1197 | corner of the Axes. The convention 'upper' is typically used for |
| 1198 | matrices and images. |
| 1199 | |
| 1200 | filternorm : bool, default: True |
| 1201 | A parameter for the antigrain image resize filter |
| 1202 | (see the antigrain documentation). |
| 1203 | If filternorm is set, the filter normalizes integer values and corrects |
| 1204 | the rounding errors. It doesn't do anything with the source floating |
| 1205 | point values, it corrects only integers according to the rule of 1.0 |
| 1206 | which means that any sum of pixel weights must be equal to 1.0. So, |
| 1207 | the filter function must produce a graph of the proper shape. |
| 1208 | |
| 1209 | filterrad : float > 0, default: 4 |
| 1210 | The filter radius for filters that have a radius parameter, i.e. when |
| 1211 | interpolation is one of: 'sinc', 'lanczos' or 'blackman'. |
| 1212 | |
| 1213 | resample : bool, default: False |
| 1214 | When True, use a full resampling method. When False, only resample when |
| 1215 | the output image is larger than the input image. |
no outgoing calls
searching dependent graphs…