Skip to content

Allow unit input to FancyArrowPatch #12643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 10, 2018

Conversation

dstansby
Copy link
Member

Fixes #12591. I added _convert_xy_units to the Patch base class, as I figure it's probably useful for other Patch subclasses too.

@dstansby dstansby added this to the v3.1 milestone Oct 26, 2018
@@ -4253,8 +4261,10 @@ def get_path_in_displaycoord(self):
dpi_cor = self.get_dpi_cor()

if self._posA_posB is not None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems good - is it worth looking at the other patches to see if we need to add this? You could test with the same test as below and see if they fail?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have the bandwidth to do this at the moment; perhaps quite a nice thing to add as a new-contributor friendly issue though.

@dopplershift dopplershift merged commit 2d2dab5 into matplotlib:master Nov 10, 2018
@dstansby dstansby deleted the fancyarrowunits branch November 11, 2018 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants