Skip to content

changed method in animation tutorial table of methods #24841

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
Jan 7, 2023

Conversation

story645
Copy link
Member

The animation tutorial has a table of plotting methods and the underlying artists to illustrate what to look for in the docs. I didn't catch on review that this has patches.Circle as the first entry.

image

Since Ellipse isn't the underlying patch I change the first entry to Axes.add_patch b/c I like 'em all as axes methods, but I'm unsure of @chahak13 intent here. (My guess is the example started as circle and morphed to ellipse)

@chahak13
Copy link
Contributor

chahak13 commented Dec 29, 2022

Thanks! It did indeed start as a circle but I changed it to Ellipse since all the base methods came from Ellipse.

The reason, I think, I had patches.Circle in the first column was because I was trying to show that even patches can be animated.

@story645
Copy link
Member Author

figured it was something like that - does ax.add_patch for for you then? (or something like ax.add_patch(patch.Ellipse())?

@chahak13
Copy link
Contributor

I think I'd prefer the second one so that it's clear.

@story645 story645 force-pushed the animation-tutorial branch 3 times, most recently from 9409dd0 to f84f0cf Compare January 6, 2023 06:58
@story645 story645 added this to the v3.7.0 milestone Jan 6, 2023
# `.Rectangle.set_height`,
# `.Rectangle.set_width`,
# `.Rectangle.set_x`,
# `.Rectangle.set_y`
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
# `.Rectangle.set_y`
# `.Rectangle.set_y`,

@oscargus
Copy link
Member

oscargus commented Jan 6, 2023

I'm not saying that I fully understand the idea here (either before or after this PR), especially if there are commas left out on purpose or just missing (the one I marked is an old one, but there I am quite sure it is simply missing).

It may be worth noting that I have not been able to get both add_patchand Ellipse to render on the same row.

Shouldn't .Ellipse.set_center et al end up in the last column?

Comment on lines 83 to 85
# `.Ellipse.set_center`,
# `.Ellipse.set_height`,
# `.Ellipse.set_width`
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be in the 3rd column, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah messed up spacing but don't have time to change this to list-table, fixing

Co-authored-by: Chahak Mehta <chahakmehta013@gmail.com>
@story645 story645 force-pushed the animation-tutorial branch from f84f0cf to 8f4f084 Compare January 6, 2023 16:10
@story645
Copy link
Member Author

story645 commented Jan 6, 2023

It may be worth noting that I have not been able to get both add_patchand Ellipse to render on the same row.

figured this out, solution was to escape the parenthesis. also abbreviated the set method so that the table won't overflow

@QuLogic QuLogic merged commit 7a0ea31 into matplotlib:main Jan 7, 2023
@story645 story645 deleted the animation-tutorial branch January 7, 2023 23:09
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