|
63 | 63 | # |
64 | 64 | # ``interpolation_stage='data'``: Data -> Interpolate/Resample -> Normalize -> RGBA |
65 | 65 | # |
66 | | -# For both keyword arguments, Matplotlib has a default "antialiased", that is |
| 66 | +# For both keyword arguments, Matplotlib has a default "auto", that is |
67 | 67 | # recommended for most situations, and is described below. Note that this |
68 | 68 | # default behaves differently if the image is being down- or up-sampled, as |
69 | 69 | # described below. |
|
166 | 166 | # %% |
167 | 167 | # A final example shows the desirability of performing the anti-aliasing at the |
168 | 168 | # RGBA stage when using non-trivial interpolation kernels. In the following, |
169 | | -# the data in the upper 100 rows is exactly 0.0, and data in the inner circle |
| 169 | +# the data in the outer circle is exactly 0.0, and data in the inner circle |
170 | 170 | # is exactly 2.0. If we perform the *interpolation_stage* in 'data' space and |
171 | 171 | # use an anti-aliasing filter (first panel), then floating point imprecision |
172 | 172 | # makes some of the data values just a bit less than zero or a bit more than |
173 | 173 | # 2.0, and they get assigned the under- or over- colors. This can be avoided if |
174 | | -# you do not use an anti-aliasing filter (*interpolation* set set to |
| 174 | +# you do not use an anti-aliasing filter (*interpolation* set to |
175 | 175 | # 'nearest'), however, that makes the part of the data susceptible to Moiré |
176 | 176 | # patterns much worse (second panel). Therefore, we recommend the default |
177 | 177 | # *interpolation* of 'hanning'/'auto', and *interpolation_stage* of |
|
0 commit comments