Ńň tJc @ s} d d k Z d d k l Z l Z l Z d d k l Z d d g Z d Z d e f d YZ d e f d YZ d S( i˙˙˙˙N( t compute_planest linear_interpolate_gridt nn_interpolate_grid( t nn_interpolate_unstructuredt LinearInterpolatort NNInterpolatorc C sC t | d j p* t | d t p t | d t o t d n | d i } | d i } | d i } t | t p t | i | i j o t d n t | i } | d i } | d i } | d i } t | t p t | i | i j o t d n t | i } | | | | | | f S( s Convert a 2-tuple of slices to start,stop,steps for x and y. key -- (slice(ystart,ystop,ystep), slice(xtart, xstop, xstep)) For now, the only accepted step values are imaginary integers (interpreted in the same way numpy.mgrid, etc. do). i i i s only 2-D slices, pleases0 only the [start:stop:numsteps*1j] form supported( t lent isinstancet slicet ValueErrort startt stopt stept complext intt realt imag( t keyt x0t x1t xstept y0t y1t ystep( ( sE /usr/lib64/python2.6/site-packages/matplotlib/delaunay/interpolate.pyt slice2gridspec s" * *c B s&