SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] 'BlendedGenericTransform' object has no attribute '_interpolation_steps'

Tony S Yu wrote:
> When running `pyplot.spy` I ran into the following error:
> 
> AttributeError: 'BlendedGenericTransform' object has no attribute 
> '_interpolation_steps'
> 
> Just from pattern matching (I have no idea what's going on in the 
> code), I noticed that _interpolation_steps was usually called from a 
> Path object, not a Transform object, so I tried switching the call 
> (see diff below), which seems to work for me. Since this was a recent 
> addition (r7130), I figure this was just a typo.
Fixed. Thank you.
Eric
> 
> Cheers,
> -Tony
> 
> 
> ===================================================================
> --- lib/matplotlib/transforms.py	(revision 7133)
> +++ lib/matplotlib/transforms.py	(working copy)
> @@ -1145,7 +1145,7 @@
> ``transform_path_affine(transform_path_non_affine(values))``.
> """
> return Path(self.transform_non_affine(path.vertices), 
> path.codes,
> - self._interpolation_steps)
> + path._interpolation_steps)
> 
> def transform_angles(self, angles, pts, radians=False, 
> pushoff=1e-5):
> """
> 
> 
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, & 
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /