8000 DOC · matplotlib/matplotlib@eefc329 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit eefc329

Browse files
committed
DOC
1 parent 591b46a commit eefc329

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

galleries/examples/images_contours_and_fields/image_antialiasing.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,13 @@
238238
# aware that some vector image viewers may smooth image pixels.
239239
#
240240
# The second method is to exactly match the size of your axes to the size of
241-
# your data. In the following, the figure is exactly 2 inches by 2 inches, and
242-
# the dpi is 200, then the 400x400 data is not resampled at all. If you download
241+
# your data. The following figure is exactly 2 inches by 2 inches, and
242+
# if the dpi is 200, then the 400x400 data is not resampled at all. If you download
243243
# this image and zoom in an image viewer you should see the individual stripes
244-
# on the left hand side.
244+
# on the left hand side (note that if you have a non hiDPI or "retina" screen, the html
245+
# may serve a 100x100 version of the image, which will be downsampled.)
245246

246-
fig = plt.figure(figsize=(2, 2), dpi=200)
247+
fig = plt.figure(figsize=(2, 2))
247248
ax = fig.add_axes([0, 0, 1, 1])
248249
ax.imshow(aa[:400, :400], cmap='RdBu_r', interpolation='nearest')
249250
plt.show()

0 commit comments

Comments
 (0)
0