Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ellipse class #24568 #24576

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

Closed
wants to merge 1 commit into from
Closed

Conversation

MarceloCMiguel
Copy link

PR Summary

PR based on issue #24568

Create a class Ellipse

PR Checklist

  • New plotting related features are documented with examples.

Copy link

@github-actions github-actions bot left a comment

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.

"""
self.pad = pad

def __call__(self,width, height, mutation_size):
Copy link
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
Copy link
Member

oscargus commented Dec 1, 2022

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
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.