Gellule Xg wrote:
> This is a bug report for matplotlib version 0.99.1.1
> 
> The clip_path keyword of imshow() does not work when setting it to 
> (Path, Transform) for two reasons:
> 
> 1. On line 622 of artist.py, v is now the tuple (Path,Transform) and 
> should be apply to func with apply(func,v). Hence the following 
> suggested change:
> 
>           for k,v in props.items():
>               func = getattr(self, 'set_'+k, None)
>               if func is None or not callable(func):
>                   raise AttributeError('Unknown property %s'%k)
> <            func(v)
>  >            if type(v) is tuple:
>  >                apply(func,v)
>               else:
>                   func(v)

apply is deprecated.  The block above could be written in one line as

                 func(*tuple(v))

Eric

>               changed = True
> 
> 2. On line 6278 of axes.py, im.set_clip_path(self.patch) should not 
> overwrite the clip path if already set. Hence the following suggested 
> change:
> 
>           im.set_data(X)
>           im.set_alpha(alpha)
>           self._set_artist_props(im)
> <        im.set_clip_path(self.patch)
>  >        if not im._clipon:
>  >            im.set_clip_path(self.patch)
>           #if norm is None and shape is None:
>           #    im.set_clim(vmin, vmax)
>           if vmin is not None or vmax is not None:
>               im.set_clim(vmin, vmax)
>           else:
>               im.autoscale_None()
>           im.set_url(url)
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to