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

Skip to content

Commit 68d10b3

Browse files
authored
Merge pull request matplotlib#6608 from efiring/none_vs_nearest
DOC: update static image for example None_vs_nearest
2 parents c7d7cbb + 89ed843 commit 68d10b3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

examples/images_contours_and_fields/interpolation_none_vs_nearest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
# example, the 'Nearest_vs_none-pdf.pdf' has been pre-converted into
5555
#'Nearest_vs_none-pdf.png' at 80 dpi. We simply need to load and
5656
# display it.
57+
# The conversion is done with:
58+
# gs -dNOPAUSE -dBATCH -dDOINTERPOLATE -sDEVICE=pngalpha \
59+
# -sOutputFile=None_vs_nearest-pdf.png -r80 None_vs_nearest-pdf.pdf
5760
pdf_im_path = cbook.get_sample_data('None_vs_nearest-pdf.png')
5861
pdf_im = plt.imread(pdf_im_path)
5962
fig2 = plt.figure(figsize=[8.0, 7.5])
Loading

0 commit comments

Comments
 (0)