'BlendedGenericTransform' object has no attribute '_interpolation_steps'

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.

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):
          """

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
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options