Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4dd511

Browse files
committed
Update interpolation_none_vs_nearest.py
Minor rewording to "interpolation_none_vs_nearest.py" description.
1 parent 22f9d2e commit b4dd511

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

examples/images_contours_and_fields/interpolation_none_vs_nearest.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
Displays the difference between interpolation = 'none' and
33
interpolation = 'nearest'.
44
5-
Interpolation = 'none' and 'nearest' are equivalent when converting a
6-
figure to an image file, such as a PNG. Interpolation = 'none'
7-
and interpolation = 'nearest' behave quite differently, however, when
8-
converting a figure to a vector graphics file, such as a PDF. As shown,
9-
Interpolation = 'none' works well when a big image is scaled down, while
10-
interpolation = 'nearest' works well when a small image is blown up.
5+
Interpolation = 'none' and interpolation = 'nearest' are equivalent when
6+
converting a figure to an image file, such as a PNG.
7+
Interpolation = 'none' and interpolation = 'nearest' behave quite
8+
differently, however, when converting a figure to a vector graphics file,
9+
such as a PDF. As shown, Interpolation = 'none' works well when a big
10+
image is scaled down, while interpolation = 'nearest' works well when a
11+
small image is blown up.
1112
"""
1213

1314
import numpy as np
@@ -44,4 +45,4 @@
4445
txt = fig.text(0.452, 0.95, 'Saved as a PNG', fontsize = 18)
4546
plt.savefig('Nearest_vs_none.png', bbox_inches = 'tight')
4647
txt.set_text('Saved as a PDF')
47-
plt.savefig('Nearest_vs_none.pdf', bbox_inches = 'tight')
48+
plt.savefig('Nearest_vs_none.pdf', bbox_inches = 'tight')

0 commit comments

Comments
 (0)