Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Tags for simple_scatter.py demo#27302
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Tags for simple_scatter.py demo#27302
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| # %% | ||
| # | ||
| # .. tags:: component: animation, component: scatter, purpose: reference, level: intermediate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think scatter is plot_type: scatter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Corrected. thank you!
There was a problem hiding this 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 week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.
You can also join uson gitter for real-time discussion.
For details on testing, writing docs, and our review process, please seethe developer guide
We strive to be a welcoming and open project. Please follow ourCode of Conduct.
| # .. tags:: component: animation, plot type: scatter, | ||
| # .. tags:: purpose: reference, level: intermediate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
| # .. tags:: component: animation, plot type: scatter, | |
| # .. tags:: purpose: reference, level: intermediate | |
| # .. tags:: component: animation, plot type: scatter, purpose: reference, level: intermediate |
tags can all be on one line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think this edit should be made for two reasons:
the rendering makes it so that there are two
Tags:sections in the htmlthe trailing comma makes it treat
""as a tag which displays oddly and I think is causing the doc build failure.
That said, putting it on one line does break linting due to line length, does the tag directive have a good way of dealing with that/splitting across lines in the same directive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
So I think question for@melissawm if the following would be an ok ask
..tags:: tag1, ......., tagn tagn+1, ....., tagn+8There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thank you for reviewing the commits and the suggestion! I made the change suggested above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think that is a reasonable suggestion. I will open an issue on sphinx-tags and try to get to it. For now can we ignore the linting on this line/file?
story645 left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Stylistic nitpick, but otherwise looks good.
ETA: Basically, I'll leave this open for a bit so you can choose whether to make the change I suggested, but I think it's okay to merge w/o the change.
ksunden commentedDec 20, 2023
Cycling to rerun doc test |
story645 commentedDec 21, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@ksunden so I've got multiline content tags implemented, it's just waiting on reviews and mergingmelissawm/sphinx-tags#84 which should be good to go aftermelissawm/sphinx-tags#89 But doc tests will fail w/o those PRs in. |
Uh oh!
There was an error while loading.Please reload this page.
story645 commentedDec 27, 2023
@gougouasmi did you want to handle the rest of your tags? I left them out of my batch PRs in case you did. |
gougouasmi commentedDec 28, 2023
Hello@story645 ! I am a bit lost about what to do from here. Are we waiting on two other PRs?melissawm/sphinx-tags#84 andmelissawm/sphinx-tags#89 |
story645 commentedDec 28, 2023
Kinda - those implement support for putting the tags in the body of the directive: ..tag:: t1, t2, etcBut tags on one line work perfectly well. Basically if you're still interested you can put in the PR even if it'll be a bit before it can get merged - just put the tags on one line to test that it works. |
QuLogic commentedSep 13, 2024
Those upstream PRs are merged and released now; does this just need a rebase? |
50e8701 tod6fee60Compared6fee60 to211239cComparestory645 commentedSep 13, 2024
i took the liberty of rebasing b/c I feel bad that we've dragged this out so long. Sorry@gougouasmi! |
QuLogic left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
It seems there's something missing in the tags extension that breaks the reference check, but we can fix the reference.
Uh oh!
There was an error while loading.Please reload this page.
211239c to66dfeaaComparestory645 commentedSep 16, 2024
removed comma and put each on its own line |
QuLogic commentedSep 16, 2024
Thanks@gougouasmi! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again. |
PR summary
Hello! This PR adds the tags for the simple scatter demo. I tagged a few more examples during the sprint. I wanted to start with just one to see how it goes.
Link to the scatter demo:
https://matplotlib.org/devdocs/gallery/animation/simple_scatter.html
Related:#27235
PR checklist