Skip to content

Update annotate_explain.py #25674

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 3 commits into from
Closed

Update annotate_explain.py #25674

wants to merge 3 commits into from

Conversation

ggold7046
Copy link

Add more explanatory comments to annotate_explain.py example for enhanced readability.

PR Summary

This Pull Request improves the documentation of the annotate_explain.py example.
Adds enough information in the example file for the user to understand every step

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/
  • API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

Add more explanatory comments to annotate_explain.py example for enhanced readability.
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.

@timhoffm
Copy link
Member

Thanks for you contribution! However, I don't think this is going the right direction. I know, our current description how examples should look like is insufficient. Please read #11654 (comment) to get a general idea.

@ggold7046
Copy link
Author

Hi @timhoffm , thank you for the reply. I looked at the link you provided. Could you please add some suggestion in this PR to improve. That will be much more easier for me to understand what else is needed.

@jklymak
Copy link
Member

jklymak commented Apr 13, 2023

  • You may use some short explanatory comments within the code (a good example is the aspect comment in the pie chart example above). But do not clutter the code with too many comments.

This PR definitely clutters the code.

The original issue refers to the fact that many of the examples were just an example, with no preamble explaining the goal of the example, or what feature it is being demonstrated. Most of these have been fixed, but if you look through the examples there are still a few that haven't been updated eg https://matplotlib.org/stable/gallery/subplots_axes_and_figures/axes_zoom_effect.html

@melissawm
Copy link
Member

Hi @ggold7046 👋🏻 Let me know if you'd like to connect some time! Maybe we can chat either on gitter (where you can also join our #incubator channel) or through a zoom call and discuss possible ways to contribute. I'd be happy to know more about your goals and how we can best support you. Cheers!

@story645
Copy link
Member

story645 commented Apr 14, 2023

Um to maybe complicate things a bit further, but getting this out b/f more work is done here, I think this example should be incorporated into the annotation tutorial. Arguably, I don't think this section of the gallery even makes sense anymore given it mostly acted as a place to store tutorial images, and most of the images should either be rehomed to their tutorials or to a more semantically meaningful location in the gallery.

This example in particular is generating a reference image to illustrate a feature of annotations, but isn't particularly written in a way where I think it's good at teaching someone how to use the feature. For that, I'd advocate adding a small example to https://matplotlib.org/devdocs/users/explain/text/annotations.html#customizing-annotation-arrows

@jklymak jklymak marked this pull request as draft June 14, 2023 18:23
@jklymak
Copy link
Member

jklymak commented Jun 14, 2023

Converting to draft pending revision

@ggold7046 ggold7046 closed this by deleting the head repository Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for author
Development

Successfully merging this pull request may close these issues.

5 participants