Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6791fb1

Browse filesBrowse files
committed
DOC
1 parent c2aa87f commit 6791fb1
Copy full SHA for 6791fb1

File tree

1 file changed

+5
-4
lines changed
Filter options

1 file changed

+5
-4
lines changed

‎galleries/examples/images_contours_and_fields/image_antialiasing.py

Copy file name to clipboardExpand all lines: galleries/examples/images_contours_and_fields/image_antialiasing.py
+5-4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.