Add a test for #14451 · Issue #14503 · matplotlib/matplotlib · GitHub
Skip to content

Add a test for #14451 #14503

Description

@tacaswell

#14451 fixes a regression from #11407 by applying the following change:

diff --git a/lib/matplotlib/lines.py b/lib/matplotlib/lines.py
index 52fffe09aba..477565723be 100644
--- a/lib/matplotlib/lines.py
+++ b/lib/matplotlib/lines.py
@@ -835,10 +835,10 @@ def draw(self, renderer):
                     self.recache()
                     self._transform_path(subslice)
                     tpath, affine = (self._get_transformed_path()
-                                    .get_transformed_path_and_affine())
+                                    .get_transformed_points_and_affine())
             else:
                 tpath, affine = (self._get_transformed_path()
-                                 .get_transformed_path_and_affine())
+                                 .get_transformed_points_and_affine())
 
             if len(tpath.vertices):
                 # subsample the markers if markevery is not None

Our current tests do not detect this change, we should add at least one test which is sensative to this. Astropy examples have one such case, but we probably want something simpler.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions