/opt/alt/python27/lib64/python2.7/site-packages/matplotlib
NameSizeModeActions
backends/-0755rm
delaunay/-0755rm
mpl-data/-0755rm
numerix/-0755rm
projections/-0755rm
sphinxext/-0755rm
afm.py150890644editdlrm
afm.pyc173880644editdlrm
afm.pyo173880644editdlrm
artist.py356230644editdlrm
artist.pyc414310644editdlrm
artist.pyo414310644editdlrm
axes.py2800890644editdlrm
axes.pyc2525680644editdlrm
axes.pyo2514560644editdlrm
axis.py573540644editdlrm
axis.pyc608580644editdlrm
axis.pyo605510644editdlrm
backend_bases.py723180644editdlrm
backend_bases.pyc799690644editdlrm
backend_bases.pyo798790644editdlrm
bezier.py149170644editdlrm
bezier.pyc138120644editdlrm
bezier.pyo138120644editdlrm
blocking_input.py136900644editdlrm
blocking_input.pyc147620644editdlrm
blocking_input.pyo144440644editdlrm
cbook.py427560644editdlrm
cbook.pyc586920644editdlrm
cbook.pyo584660644editdlrm
cm.py80980644editdlrm
cm.pyc100320644editdlrm
cm.pyo100320644editdlrm
collections.py407840644editdlrm
collections.pyc451110644editdlrm
collections.pyo451110644editdlrm
colorbar.py274560644editdlrm
colorbar.pyc258350644editdlrm
colorbar.pyo258350644editdlrm
colors.py391100644editdlrm
colors.pyc406900644editdlrm
colors.pyo406900644editdlrm
contour.py428950644editdlrm
contour.pyc364630644editdlrm
contour.pyo363010644editdlrm
dates.py360070755editdlrm
dates.pyc411350644editdlrm
dates.pyo410710644editdlrm
dviread.py320330644editdlrm
dviread.pyc354880644editdlrm
dviread.pyo353450644editdlrm
figure.py412640644editdlrm
figure.pyc437060644editdlrm
figure.pyo435750644editdlrm
finance.py205820644editdlrm
finance.pyc186750644editdlrm
finance.pyo185150644editdlrm
fontconfig_pattern.py64290644editdlrm
fontconfig_pattern.pyc67100644editdlrm
fontconfig_pattern.pyo67100644editdlrm
font_manager.py426530644editdlrm
font_manager.pyc412750644editdlrm
font_manager.pyo412750644editdlrm
ft2font.so3061680755editdlrm
hatch.py65640644editdlrm
hatch.pyc94840644editdlrm
hatch.pyo94840644editdlrm
image.py315400644editdlrm
image.pyc337830644editdlrm
image.pyo337370644editdlrm
legend.py323020644editdlrm
legend.pyc238760644editdlrm
legend.pyo237030644editdlrm
lines.py546850644editdlrm
lines.pyc579910644editdlrm
lines.pyo578860644editdlrm
mathtext.py1020090644editdlrm
mathtext.pyc1060700644editdlrm
mathtext.pyo1056820644editdlrm
mlab.py942940644editdlrm
mlab.pyc1019150644editdlrm
mlab.pyo1017350644editdlrm
mpl.py7850644editdlrm
mpl.pyc11890644editdlrm
mpl.pyo11890644editdlrm
nxutils.so97040755editdlrm
offsetbox.py298070644editdlrm
offsetbox.pyc348250644editdlrm
offsetbox.pyo347700644editdlrm
patches.py1284850644editdlrm
patches.pyc1337360644editdlrm
patches.pyo1335980644editdlrm
path.py217650644editdlrm
path.pyc214990644editdlrm
path.pyo212790644editdlrm
pylab.py109810644editdlrm
pylab.pyc124380644editdlrm
pylab.pyo124380644editdlrm
pyparsing.py1439240644editdlrm
pyparsing.pyc1511830644editdlrm
pyparsing.pyo1511830644editdlrm
pyplot.py824680644editdlrm
pyplot.pyc819820644editdlrm
pyplot.pyo819820644editdlrm
quiver.py375400644editdlrm
quiver.pyc341520644editdlrm
quiver.pyo341520644editdlrm
rcsetup.py234340644editdlrm
rcsetup.pyc215220644editdlrm
rcsetup.pyo213520644editdlrm
scale.py142330644editdlrm
scale.pyc202540644editdlrm
scale.pyo202540644editdlrm
spines.py126840644editdlrm
spines.pyc118830644editdlrm
spines.pyo114560644editdlrm
table.py168280644editdlrm
table.pyc173730644editdlrm
table.pyo172220644editdlrm
texmanager.py224640644editdlrm
texmanager.pyc202090644editdlrm
texmanager.pyo202090644editdlrm
text.py598220644editdlrm
text.pyc606960644editdlrm
text.pyo606960644editdlrm
ticker.py404280644editdlrm
ticker.pyc521640644editdlrm
ticker.pyo520280644editdlrm
tight_bbox.py36550644editdlrm
tight_bbox.pyc41570644editdlrm
tight_bbox.pyo41570644editdlrm
transforms.py753870644editdlrm
transforms.pyc924320644editdlrm
transforms.pyo915230644editdlrm
ttconv.so654880755editdlrm
type1font.py115370644editdlrm
type1font.pyc114900644editdlrm
type1font.pyo114900644editdlrm
units.py49760644editdlrm
units.pyc59180644editdlrm
units.pyo59180644editdlrm
widgets.py408330644editdlrm
widgets.pyc436080644editdlrm
widgets.pyo434220644editdlrm
windowing.py4540644editdlrm
windowing.pyc13610644editdlrm
windowing.pyo13610644editdlrm
_cm.py3704140644editdlrm
_cm.pyc1030550644editdlrm
_cm.pyo1030550644editdlrm
_cntr.so209600755editdlrm
_delaunay.so611840755editdlrm
_image.so2828560755editdlrm
_mathtext_data.py579900644editdlrm
_mathtext_data.pyc638000644editdlrm
_mathtext_data.pyo638000644editdlrm
_path.so2803120755editdlrm
_png.so1565040755editdlrm
_pylab_helpers.py27150644editdlrm
_pylab_helpers.pyc38380644editdlrm
_pylab_helpers.pyo38380644editdlrm
__init__.py289720644editdlrm
__init__.pyc294350644editdlrm
__init__.pyo293810644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyo (33737B)
Jc@ sdZddklZddkZddkZddkZddklZddkl Z ddk i Z ddk l Z ddkiZddkiZddkiZddkiZddkiZddkTde ieifd YZd efd YZd e ieifd YZde ieifdYZdZe e e e e dZ!dZ"dde#dZ$dS(sS The image module supports basic image loading, rescaling and display operations. i(tdivisionN(tma(trcParams(tallow_rasterization(t*t AxesImagec B seZdZheid6eid6eid6eid6eid6ei d6ei d6ei d6ei d 6ei d 6eid 6eid 6eid 6eid6eid6eid6eid6ZegZeiD]\ZZeeefq[ZeiZdZd)d)d)d)d)dde dZ!dZ"dZ#dZ$ddZ%e&dZ'dZ(e dZ)dZ*dZ+dZ,d Z-d!Z.d"Z/d#Z0d$Z1d%Z2d&Z3d'Z4d(Z5RS(*itnearesttbilineartbicubictspline16tspline36thanningthammingthermitetkaisertquadrictcatromtgaussiantbesseltmitchelltsinctlanczostblackmancC sdt|iiiS(NsAxesImage(%g,%g;%gx%g)(ttupletaxestbboxtbounds(tself((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyt__str__7sg@c K stii|tii||||djotd}n||_||_|i ||i |||_ |i ||i | ||_d|_|i| dS(s interpolation and cmap default to their rc settings cmap is a colors.Colormap instance norm is a colors.Normalize instance to map luminance to 0-1 extent is data axes (left, right, bottom, top) for making image plots registered with data plots. Default is to label the pixel centers with the zero-based row and column indices. Additional kwargs are matplotlib.artist properties s image.originN(tmartisttArtistt__init__tcmtScalarMappabletNoneRtorigint_extenttset_filternormt set_filterradt _filterradtset_interpolationt set_resampleRt_imcachetupdate( Rtaxtcmaptnormt interpolationR#textentt filternormt filterradtresampletkwargs((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR:s          cC s.|idjotdn|iid S(s+Get the numrows, numcols of the input images"You must first set the image arrayiN(t_AR"t RuntimeErrortshape(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pytget_sizeescC s tii||d|_dS(sw Set the alpha value used for blending - not supported on all backends ACCEPTS: float N(RRt set_alphaR"R*(Rtalpha((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR9lscC s&d|_d|_tii|dS(sb Call this whenever the mappable is changed so observers can update state N(R"R*t _rgbacacheR R!tchanged(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR<vs  g?c&C s|idjotdn|i\}}}}||}||}||iii}||iii} |iid \} } |djo|iii ||| } t dt | |i } |iii ||| }t| t ||i }t| |}|}|| || }|||| }||}||iii}ntd| }| djo|iii||| }t dt ||i }|iii||| }t| t ||i }|idjot| || |}nt||}|}|||| }|||| }||}||iii} ntd| }||ijp||ijod|_||_||_n|idjo!|iitijoNt|iidjo5ti|i||ddfd}t|_n|idjo%|i|i|i }||_n |i}ti!|||fd}t|iidjo|i"i#|_n t|_||_|idjo|i$qn |i}|ii%i&}t'i(i|d}|i)||i*|i+\} } | djp | djodS|i,|i-|i.|i/|i0||iii || }||iii|| }|ii1i2\}}} }!t3| dt3|d}"t3|!dt3|d}#|"|9}"|#|9}#|i4|||"| }$|#| }%|i5|$||%| |i6t |"dt |#dd|i7d |i |S( Ns9You must first set the image array or the image attributeiitupperiig?R.tradius(8R5R"R6t get_extentRtviewLimtwidththeightR7tx0tmaxtintR'tx1tmintslicety0ty1R#t _oldxslicet _oldysliceR*tdtypetnptuint8tlent_imagetfrombytetFalset is_grayscaleR;tto_rgbat_alphat fromarrayR-tis_grayt flipud_intpatcht get_facecolortmcolorstcolorConvertertset_bgt reset_matrixR8R(t_interpdt_interpolationR)t _resampleRtextentstroundtapply_translationt apply_scalingtresizet _filternorm(&Rt magnificationtxmintxmaxtymintymaxtdxintvtdyintvtsxtsytnumrowstnumcolsRCtix0RFtix1txslicetxmin_oldRItiy0RJtiy1tyslicetymin_oldtimtxtfctbgttxttytltbtrttt widthDisplayt heightDisplaytrxtry((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyt make_images          /(            #c O s|ipdS|iidjp|iidjotidn|i|i}|djodS|i |_ |ii i \}}}}|i \} } |it|t|||ii i| | dS(Ntlinears,Images are not supported on non-linear axes.(t get_visibleRt get_xscalet get_yscaletwarningstwarnRtget_image_magnificationR"tget_urlt_urlRRt$get_transformed_clip_path_and_affinet draw_imageRdtfrozen( RtrenderertargsR4R|RRRRtclippathtaffine((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pytdraws  *c C st|io|i||S|i|i}}|i\}}}}||jo||}}n||jo||}}n|dj oD|dj o7||jo$||jo||jo ||j}nt}|hfS(sH Test whether the mouse event occured within the image. N(tcallablet _containstxdatatydataR?R"RS( Rt mouseeventR}tyRjRkRlRmtinside((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pytcontainss  7c C s|i}|djodS|o=|i\}}|i|id|i||n|i|i\}}}ti ||||dS(s&Write the image to png file with fnameNi( RR"R8R_R(Rgt flipud_outt as_rgba_strt_pngt write_png( RtfnametnoscaleR|RrRstrowstcolstbuffer((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR s     cC st|dot||_nti||_|iitijo-ti|iiti  ot dn|ii d jp*|ii djo'|ii dd jot dnd|_d|_d|_d|_dS( sI Set the image array ACCEPTS: numpy/PIL Image A tgetpixels#Image data can not convert to floatiiiis!Invalid dimensions for image dataN(ii(ii(thasattrt pil_to_arrayR5tcbooktsafe_masked_invalidRMRNROtcan_casttfloatt TypeErrortndimR7R"R*R;RKRL(RtA((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pytset_datas3*   cC s|i|dS(sq retained for backwards compatibility - use set_data instead ACCEPTS: numpy array A or PIL ImageN(R(RR((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyt set_array3s cC s||_|\}}}}||f||ff}|ii||iio|ii||fn|iio|ii||fndS(sW extent is data axes (left, right, bottom, top) for making image plots N(R$Rtupdate_datalimt _autoscaleXontset_xlimt _autoscaleYontset_ylim(RR0RjRkRlRmtcorners((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyt set_extent@s   cC s|iS(s Return the interpolation method the image uses when resizing. One of 'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36', 'hanning', 'hamming', 'hermite', 'kaiser', 'quadric', 'catrom', 'gaussian', 'bessel', 'mitchell', 'sinc', 'lanczos', (Ra(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pytget_interpolationNscC sT|djotd}n|i}||ijotdn||_dS(s? Set the interpolation method the image uses when resizing. ACCEPTS: ['nearest' | 'bilinear' | 'bicubic' | 'spline16' | 'spline36' | 'hanning' | 'hamming' | 'hermite' | 'kaiser' | 'quadric' | 'catrom' | 'gaussian' | 'bessel' | 'mitchell' | 'sinc' | 'lanczos' | ] simage.interpolationsIllegal interpolation stringN(R"RtlowerR`t ValueErrorRa(Rts((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR(Xs  cC s(|djotd}n||_dS(sZ set whether or not image resampling is used ACCEPTS: True|False simage.resampleN(R"RRb(Rtv((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR)hs cC s|iS(s!return the image resample boolean(Rb(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyt get_resampleqscC su|idj o|iS|i}|\}}|idjod|d|ddfSd|dd|dfSdS(s.get the image extent: left, right, bottom, topR=gg?N(R$R"R8R#(RtszRrRs((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR?us  cC s!|o d|_n d|_dS(sy Set whether the resize filter norms the weights -- see help for imshow ACCEPTS: 0 or 1 iiN(Rh(RR1((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR%s cC s|iS(sreturn the filternorm setting(Rh(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pytget_filternormscC st|}||_dS(s Set the resize filter radius only applicable to some interpolation schemes -- see help for imshow ACCEPTS: positive float N(RR'(RR2R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR&s cC s|iS(sreturn the filterrad setting(R'(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyt get_filterradsN(6t__name__t __module__tzorderRQtNEARESTtBILINEARtBICUBICtSPLINE16tSPLINE36tHANNINGtHAMMINGtHERMITEtKAISERtQUADRICtCATROMtGAUSSIANtBESSELtMITCHELLtSINCtLANCZOStBLACKMANR`tdictt_[1]titemstkRt _interpdrtkeyst interpnamesRR"RSRR8R9R<RRRRRRRRRR(R)RR?R%RR&R(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyRsb                 9   #  g        tNonUniformImagecB seeZdZddZdZdZdZdZdZdZ d Z d Z RS( cK s9|idd}ti|||ti||dS(sx kwargs are identical to those for AxesImage, except that 'interpolation' defaults to 'nearest' R/RN(tpopRRR((RR,R4tinterp((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyRs g?c C s2|idjotdn|iii\}}}}|iii\}}}} t|dt|d} t| dt|d} | |9} | |9} t i |i |i |i| | ||||||f|i |i} |iii} tii| d}| i||i| _| S(Ns"You must first set the image arrayg?i(R5R"R6RR@RRRcRdRQtpcolort_Axt_AyR`RaRZR[R\R]RUR^RT(RRiRCRItv_widthtv_heightRRRRRARBR|R~R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyRs"    c C sti|ti}ti|ti}ti|}t|idjpAt|idjp+|idd!|id|idfjotdnt|id jotdnt|idjo$|idd jotdnt|idjo+|iddjo|idd!|_nt|idjo|iti jo>|i |i |d i ti }|i i |_qti|d d d d tifdd}d |d d d d df ,+**(1 /%     cG stddS(NsMethod not supported(tNotImplementedError(RR((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyRscC s>|djo|djotdnti||dS(NRRs?Only nearest neighbor and bilinear interpolations are supported(snearestsbilinear(R"RRR((RR((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR(scC sL|idjotdn|id|id|id|idfS(NsMust set data firstii(R5R"R6RR(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR?scC sdS(N((RR((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR%scC sdS(N((RR((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR&scC s7|idj otdntii||dS(Ns'Cannot change colors after loading data(R5R"R6R R!tset_norm(RR.((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyRscC s7|idj otdntii||dS(Ns'Cannot change colors after loading data(R5R"R6R R!tset_cmap(RR-((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyRs( RRRRRRR(R?R%R&RR(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyRs  -      t PcolorImagecB s\eZdZddddddZddZedZdZdZ dZ RS( s Make a pcolor-style plot with an irregular rectangular grid. This uses a variation of the original irregular image code, and it is used by pcolorfast for the corresponding grid type. cK s\tii|tii|||||_d|_|i||i |||dS(s cmap defaults to its rc setting cmap is a colors.Colormap instance norm is a colors.Normalize instance to map luminance to 0-1 Additional kwargs are matplotlib.artist properties N( RRRR R!RR"R;R+R(RR,R}RRR-R.R4((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyRs    g?c C s|idjotdn|iii}tii|d}t i |di t i }|ii i\}}}}t|dt|d}t|dt|d} ||}| |} |idoW|i|id|idt} | |_|iidjo|ii|_qAn |i} |ii} ti|i|i| | || i| i| i| i f|} |i| _| S( Ns"You must first set the image arrayiig?tarrayR:tbytesi(!R5R"R6RRZR[R\R]RURNRRRORRcRdt check_updateRVRR;RR-RXRTR@RQtpcolor2RRRCRFRIRJ( RRiR~RRRRRRARBRtvlR|((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR*s0  !     cO st|ipdS|i|i}|it|iiit|iii||iii |i dS(N( RRRRRdRRRjRlRR(RRRR4R|((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyREs cC s_ti|}|djo*tid|idddti}nti|tii}|djo*tid|idddti}nti|tii}|id |i d|i dfjo(|iGH|i GH|i GHt dn|i d jot dn|i djo(|iddjo|id |_nt |_ |i djo|idd jo|dddddf|dddddfjioR|dddddf|dddddfjio t|_ q/q3t d n||_||_||_t|id `_ is installed, it will use it to load the image and return an array (if possible) which can be used with :func:`~matplotlib.pyplot.imshow`. c s@yddk}Wntj odSX|i}t|S(s-try to load the image with PIL or return NoneiN(tImaget ImportErrorR"topenR(Rtimage(R(sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pytpilreads tpngis\Only know how to handle extensions: %s; with PIL installed matplotlib can handle more imagesN( Rtread_pngtostpathtsplitextRRR"R(RRthandlerstbasenametextR|thandler((RsC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pytimreads   c C sddkl}ddkl}|d|iddddddt} || } | i|d |d |d |d || i|ddd |dS(s Saves a 2D :class:`numpy.array` as an image with one pixel per element. The output formats available depend on the backend being used. Arguments: *fname*: A string containing a path to a filename, or a Python file-like object. If *format* is *None* and *fname* is a string, the output format is deduced from the extension of the filename. *arr*: A 2D array. Keyword arguments: *vmin*/*vmax*: [ None | scalar ] *vmin* and *vmax* set the color scaling for the image by fixing the values that map to the colormap color limits. If either *vmin* or *vmax* is None, that limit is determined from the *arr* min/max value. *cmap*: cmap is a colors.Colormap instance, eg cm.jet. If None, default to the rc image.cmap value. *format*: One of the file extensions supported by the active backend. Most backends support png, pdf, ps, eps and svg. *origin* [ 'upper' | 'lower' ] Indicates where the [0,0] index of the array is in the upper left or lower left corner of the axes. Defaults to the rc image.origin value. i(tFigureCanvasAgg(tFiguretfigsizeNtdpiitframeonR-tvmintvmaxR#tformat(tmatplotlib.backends.backend_aggRtmatplotlib.figureR R7RStfigimagetsavefig( RtarrR$R%R-R&R#t FigureCanvasR R tcanvas((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pytimsaves + %cC sd}|id jo |}n|idjo4|}||}|id|idf|_|S|idjo7|}||}|id|iddf|_|Sy|id}Wntj otd nX||}|id|idd f|_|S( s load a PIL image and return it as a numpy array of uint8. For grayscale images, the return array is MxN. For RGB images, the return value is MxNx3. For RGBA images the return value is MxNx4 cS s4|id|idd}ti|ti}|S(sreturn a 1D array of floatstrawii(ttostringtmodeRNt fromstringRO(R|tx_strR}((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyttoarray<stRGBAtRGBXtLiitRGBisUnknown image modei(R5R6(R1RR7tconvertRR6(tpilImageR4R|R}((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyR6s(       g?Rc C stii|\}}tii|\}}t|} | i\} } } d} t| | |}t| | |}|i}|o1ddki }|i d||fd| }n|djoddk l }nO|djodd k l}n.|d jodd kl}n td dd kl}|d||fd| }||}|iddddgdddtdgdg}tii|\}}|i| dddtdd|i|d| |S(s make a thumbnail of image in *infile* with output filename *thumbfile*. *infile* the image file -- must be PNG or PIL readable if you have `PIL `_ installed *thumbfile* the thumbnail filename *scale* the scale factor for the thumbnail *interpolation* the interpolation scheme used in the resampling *preview* if True, the default backend (presumably a user interface backend) will be used which will cause a figure to be raised if :func:`~matplotlib.pyplot.show` is called. If it is False, a pure image backend will be used depending on the extension, 'png'->FigureCanvasAgg, 'pdf'->FigureCanvasPDF, 'svg'->FigureCanvasSVG See examples/misc/image_thumbnail.py. .. htmlonly:: :ref:`misc-image_thumbnail` Return value is the figure instance containing the thumbnail idiNR!R"s.png(Rs.pdf(tFigureCanvasPDFs.svg(tFigureCanvasSVGs0Can only handle extensions 'png', 'svg' or 'pdf'(R iitaspecttautoR#txtickstyticksR3R/R(RRtsplitRRR7RRtmatplotlib.pyplottpyplotRR'Rtmatplotlib.backends.backend_pdfR;tmatplotlib.backends.backend_svgR<RR(R tadd_axesRStimshowRR*(tinfilet thumbfiletscaleR/tpreviewtbasedirRtbaseouttextoutR|RRtdepthR"RBRAt extensiontpltR R,R R-R,R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyt thumbnail\s4&  "     3(%Rt __future__RRRtnumpyRNRt matplotlibRtmatplotlib.artisttartistRRtmatplotlib.colorstcolorsR\t matplotlib.cmR tmatplotlib.cbookRtmatplotlib._imageRQtmatplotlib._pngRRR!RRRRRR"R.RRSRR(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/image.pyts.  iro %% &