-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC: Duplicate examples of AnchoredArtists gallery #11092
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
Comments
I see how it ended up in the axesgrid documentation section now. Now the question is why |
[ci skip] [skip ci]
Please do not remove any of the I would also not recommend deleting any of the other two examples. They both make sense in the respecitve context. The one is an example of the anchored artists from |
@ImportanceOfBeingErnest Thanks. That is exactly the kind of guidance I was looking for. Would it be OK to edit the user example a bit? |
@madphysicist Any edits to the examples gratefully received if they help improve understanding! |
The Also feel free to adjust things like In general a little bit of explanations above or below the examples is always useful. |
No files were delete, instead, a clarifying comment was added to indicate why there are nearly duplicate files sitting around. [ci skip] [skip ci]
No files were delete, instead, a clarifying comment was added to indicate why there are nearly duplicate files sitting around. [ci skip] [skip ci]
No files were delete, instead, a clarifying comment was added to indicate why there are nearly duplicate files sitting around. [ci skip] [skip ci]
@ImportanceOfBeingErnest Besides the font and figure size, there are no significant differences between the annotations guide and the user example (once I undid my changes). What did you have in mind? |
Figure size doesn't matter, because it's not in the userguide. But, yes, fontsize and linebreaks are different. And if you want to change loc=2 to loc="upper left" that should happen in both codes. |
No files were delete, instead, a clarifying comment was added to indicate why there are nearly duplicate files sitting around. [ci skip] [skip ci]
Some of those user demos can probably be removed since the figures in the annotation guide are generated in the guide directly as of #23606 |
The documentation pages at https://matplotlib.org/gallery/axes_grid1/simple_anchored_artists.html and https://matplotlib.org/gallery/misc/anchored_artists.html appear to be nearly duplicates of each other. However, the first one is much more complete, and demonstrates a much less complicated way of achieving he same thing.
The first linked page has a
if 1:
"guard" while the second one hasif __name__ == '__main__':
. Given the overall trend in the examples, neither seems necessary.An even simpler example, that is fully covered by the other ones, is given in https://matplotlib.org/gallery/userdemo/anchored_box01.html
My personal take on this is:
I'll be happy to submit a PR if a couple of senior folks approve.
P.S. The reason for all this is in the comment section of https://stackoverflow.com/a/49933937/2988730, when I realized I was giving somebody incomplete, or possibly outright bad advice.
The text was updated successfully, but these errors were encountered: