Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

DOC: Move OO-examples from pyplot section#24054

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

Merged
timhoffm merged 1 commit intomatplotlib:mainfromStefRe:DOC/pyplot_examples
Oct 2, 2022

Conversation

StefRe
Copy link
Contributor

@StefReStefRe commentedSep 29, 2022
edited
Loading

PR Summary

This PR has two commits:
1) Move OO-examples from pyplot section to corresponding sections for OO-style examples and

  • remove pyplot/bpyplots/boxplot_demo_pyplot.py as it's the same as the
    boxplot demo in statistics
  • remove pyplots/text_layout.py as it's a duplicate of text_alignment.py
    in Text, labels and annotations.
  • merge very basic examples pyplots/fig_axes_labels_simple.py and
    pyplots/pyplot_formatstr.py into pyplots/pyplot_simple.py
ExampleDecision
Align y-labelsmove to Text, labels and annotations
Annotate Transformmove to Text, labels and annotations
Annotating a plotmove to Text, labels and annotations
Annotation Polarmove to Text, labels and annotations
Programmatically controlling subplot adjustmentmove to Subplots, axes and figures
Infinite lineskeep
Boxplot Demoremove (same as Boxplots in Statistics)
Dollar Ticksmove to Ticks (the artists tutorial refers to it, so keep it)
Fig Axes Customize Simplemove to Ticks
Simple axes labelsremove (already covered in "Pyplot Simple" and the second example inUsing accented text in Matplotlib example)
Adding lines to figuresmove to Miscellaneous
plot() format stringremove and merge into "Pyplot Simple"
Pyplot Mathtextkeep
Pyplot Simplekeep and combine with "plot() format string"
Pyplot Textkeep
Pyplot Threekeep
Pyplot Two Subplotskeep
Text Commandsmove to Text, labels and annotations (although there already lots of similar examples there)
Text Layoutremove (duplicate ofText alignment in Text, labels and annotations)

Closes#15922.

2) Revert doc build in parallel

This is necessary to build to docs with the redirects.

Closes#24058

PR Checklist

Tests and Styling

  • [N/A] Has pytest style unit tests (andpytest passes).
  • [N/A] IsFlake 8 compliant (installflake8-docstrings and runflake8 --docstring-convention=all).

Documentation

  • [N/A] New features are documented, with examples if plot related.
  • [N/A] New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • [N/A] API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).

@StefReStefReforce-pushed theDOC/pyplot_examples branch 2 times, most recently fromdcbb956 to8f7d4e4CompareSeptember 30, 2022 08:45
@StefReStefRe marked this pull request as ready for reviewSeptember 30, 2022 10:32
@StefRe
Copy link
ContributorAuthor

Errors inGreetingsandtest_hexbin_log_empty[png] appear to be unrelated to this PR.

@oscargus
Copy link
Member

Although I think this makes sense, I am not so sure about removing the parallel build.

It is almost so that one should not make the dollar_ticks change just to still enable parallel build... (But I guess other people may have other opinions so better wait a bit...)

to corresponding sections for OO-style examples.- remove pyplot/bpyplots/boxplot_demo_pyplot.py as it's the same as the  boxplot demo in statistics- remove pyplots/text_layout.py as it's a duplicate of text_alignment.py  in Text, labels and annotations.- merge very basic examples pyplots/fig_axes_labels_simple.py and  pyplots/pyplot_formatstr.py into pyplots/pyplot_simple.py
@StefRe
Copy link
ContributorAuthor

Please accept my apology@oscargus. I included the same redirect in two different files. This error didn't show up for non-parallel builds: the second redirect just overwrites the first one. I fixed this mistake and the docs build in parallel without errors.

@timhoffmtimhoffm added this to thev3.6.1 milestoneOct 2, 2022
@timhoffmtimhoffm merged commit1b3019d intomatplotlib:mainOct 2, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestOct 2, 2022
@StefReStefRe deleted the DOC/pyplot_examples branchOctober 2, 2022 16:42
timhoffm added a commit that referenced this pull requestOct 2, 2022
…054-on-v3.6.xBackport PR#24054 on branch v3.6.x ( DOC: Move OO-examples from pyplot section)
timhoffm added a commit to timhoffm/matplotlib that referenced this pull requestDec 20, 2022
The example /gallery/pyplots/dollar_ticks is included intothe artists tutorial.matplotlib#24054 Moved that example and addeda `.. redirect-from::` directive. This was then duplicatedby the include.This PR fixes the issue by moving the include start pointafter the redirect.
@ksundenksunden mentioned this pull requestFeb 20, 2023
6 tasks
raphaelquast pushed a commit to raphaelquast/matplotlib that referenced this pull requestMar 16, 2023
The example /gallery/pyplots/dollar_ticks is included intothe artists tutorial.matplotlib#24054 Moved that example and addeda `.. redirect-from::` directive. This was then duplicatedby the include.This PR fixes the issue by moving the include start pointafter the redirect.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.6.1
Development

Successfully merging this pull request may close these issues.

[BUG] redirect-from sphinx extension is not parallel safe Pyplot gallery section is mostly OO examples
3 participants
@StefRe@oscargus@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp