Skip to content

ellipse class #24568 - #24576

Closed
MarceloCMiguel wants to merge 1 commit into
matplotlib:mainfrom
MarceloCMiguel:ellipse
Closed

ellipse class #24568#24576
MarceloCMiguel wants to merge 1 commit into
matplotlib:mainfrom
MarceloCMiguel:ellipse

Conversation

@MarceloCMiguel

Copy link
Copy Markdown

PR Summary

PR based on issue #24568

Create a class Ellipse

PR Checklist

  • New plotting related features are documented with examples.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a while, please feel free to ping @matplotlib/developers or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

Comment thread lib/matplotlib/patches.py
"""
self.pad = pad

def __call__(self,width, height, mutation_size):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
def __call__(self,width, height, mutation_size):
def __call__(self, x0, y0, width, height, mutation_size):

x0 and y0 are the positions of the text.

You will need to adjust the size, taking pad in to account, for this to work. See the Circle style above.

@oscargus

oscargus commented Dec 1, 2022

Copy link
Copy Markdown
Member

Thank you for this. A test is also required (and it may be good to test it locally as well, right now it is not really close to working unfortunately).

@tacaswell

Copy link
Copy Markdown
Member

#24596 seems to be solving the same problem, but has tests, I am going to close this PR in favor of #24596 which only needs a fix to the rst markup.

Thank you for your work on this @MarceloCMiguel , I hope we will hear from you again!

@tacaswell tacaswell closed this Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants