| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b00c4cdf-f909-dc27-25ec-a8d8136c0b49 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A12A:2B7671:15ED962:1DCB143:6A546506 |
| html-safe-nonce | 2b43cb5aec4162a7322bc2f73058ba3ccc358bc887597954e9853c3cb3fa60ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTJBOjJCNzY3MToxNUVEOTYyOjFEQ0IxNDM6NkE1NDY1MDYiLCJ2aXNpdG9yX2lkIjoiMzcxMTU2OTYwNjM2MTc2OTIyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 69118ebbd47e8e06e270fd733d9e83b1a78b95c8d3d8529d8a8e98b78e060b34 |
| hovercard-subject-tag | pull_request:160991335 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/matplotlib/matplotlib/pull/10149/files |
| twitter:image | https://avatars.githubusercontent.com/u/3118036?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3118036?s=400&v=4 |
| og:image:alt | PR Summary
The Sphinx plot directive can be used to automagically generate figures for documentation like so:
.. plot::
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
im... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/matplotlib/matplotlib/pull/10149/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F10149%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F10149%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=matplotlib%2Fmatplotlib |
| Reload | https://github.com/matplotlib/matplotlib/pull/10149/files |
| Reload | https://github.com/matplotlib/matplotlib/pull/10149/files |
| Reload | https://github.com/matplotlib/matplotlib/pull/10149/files |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/10149/files |
|
matplotlib
| https://github.com/matplotlib |
| matplotlib | https://github.com/matplotlib/matplotlib |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/10149/files |
|
Notifications
| https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib |
|
Fork
8.4k
| https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib |
|
Star
23k
| https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib |
|
Code
| https://github.com/matplotlib/matplotlib |
|
Issues
1.1k
| https://github.com/matplotlib/matplotlib/issues |
|
Pull requests
408
| https://github.com/matplotlib/matplotlib/pulls |
|
Actions
| https://github.com/matplotlib/matplotlib/actions |
|
Projects
| https://github.com/matplotlib/matplotlib/projects |
|
Wiki
| https://github.com/matplotlib/matplotlib/wiki |
|
Security and quality
0
| https://github.com/matplotlib/matplotlib/security |
|
Insights
| https://github.com/matplotlib/matplotlib/pulse |
|
Code
| https://github.com/matplotlib/matplotlib |
|
Issues
| https://github.com/matplotlib/matplotlib/issues |
|
Pull requests
| https://github.com/matplotlib/matplotlib/pulls |
|
Actions
| https://github.com/matplotlib/matplotlib/actions |
|
Projects
| https://github.com/matplotlib/matplotlib/projects |
|
Wiki
| https://github.com/matplotlib/matplotlib/wiki |
|
Security and quality
| https://github.com/matplotlib/matplotlib/security |
|
Insights
| https://github.com/matplotlib/matplotlib/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fmatplotlib%2Fmatplotlib%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib%2Fissues%2Fnew%2Fchoose |
| r-barnes | https://github.com/r-barnes |
| matplotlib:main | https://github.com/matplotlib/matplotlib/tree/main |
| r-barnes:plot_directive_preserve | https://github.com/r-barnes/matplotlib/tree/plot_directive_preserve |
|
Conversation
23
| https://github.com/matplotlib/matplotlib/pull/10149 |
|
Commits
13
| https://github.com/matplotlib/matplotlib/pull/10149/commits |
|
Checks
0
| https://github.com/matplotlib/matplotlib/pull/10149/checks |
|
Files changed
| https://github.com/matplotlib/matplotlib/pull/10149/files |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/10149/files |
|
Plot directive preserve
| https://github.com/matplotlib/matplotlib/pull/10149/files#top |
|
Show all changes
13 commits
| https://github.com/matplotlib/matplotlib/pull/10149/files |
|
b8c5559
Added `:outname:` option and `plot_preserve_dir` configuration value
r-barnes Jan 3, 2018
| https://github.com/matplotlib/matplotlib/pull/10149/commits/b8c5559adeaf626d289d5c4176a6d0cda33faf59 |
|
d4c41ff
Added What's New for plot directive changes
r-barnes Jan 3, 2018
| https://github.com/matplotlib/matplotlib/pull/10149/commits/d4c41ff7a1e19c732e4d41c74167de4f58b7063f |
|
69356da
Futzing with PEP8 whitespace stuff.
r-barnes Jan 3, 2018
| https://github.com/matplotlib/matplotlib/pull/10149/commits/69356da3b43add8483f404a534dc57866dfdbc88 |
|
8b477a4
Fix grammer
r-barnes Jan 3, 2018
| https://github.com/matplotlib/matplotlib/pull/10149/commits/8b477a42736ab842a76957abe2d9b6f155b2296f |
|
fddd490
Fix bug with adding null string to outname_list
r-barnes Jan 3, 2018
| https://github.com/matplotlib/matplotlib/pull/10149/commits/fddd4900de4df1ba46393e2f2cde23c662515b64 |
|
872faa1
Added a test of `:outname:`
r-barnes Jan 3, 2018
| https://github.com/matplotlib/matplotlib/pull/10149/commits/872faa1cb9390112212ace10f653cd4672f1ad99 |
|
0ee71f0
Examples of using rst need to be code blocks
r-barnes Jan 3, 2018
| https://github.com/matplotlib/matplotlib/pull/10149/commits/0ee71f09861907b3385f695edfccc6c7cc0cec6b |
|
082298e
Use logging instead of print
r-barnes Jan 3, 2018
| https://github.com/matplotlib/matplotlib/pull/10149/commits/082298e3330f9193382673eadebddd874073128c |
|
73858c1
Satisfy PEP8 checks
r-barnes Jan 3, 2018
| https://github.com/matplotlib/matplotlib/pull/10149/commits/73858c1a702d164ee02c95b33b1950cea9aff66b |
|
74e9fbc
FIX: issue with rebase due to re-naming of local variables
tacaswell Aug 12, 2019
| https://github.com/matplotlib/matplotlib/pull/10149/commits/74e9fbc06f2f6807c62c0c12a32c01b8bdc354f7 |
|
cd78416
STY: fix line length and indentation issues
tacaswell Aug 12, 2019
| https://github.com/matplotlib/matplotlib/pull/10149/commits/cd784160ec0889e73218c66f936b7f5d8b1b8631 |
|
725f25d
STY: trim whitespace and add trailing comma
tacaswell Aug 12, 2019
| https://github.com/matplotlib/matplotlib/pull/10149/commits/725f25d87d3175919faba198cd85ce849901a7ea |
|
134aaf9
Fix doc style
timhoffm Nov 24, 2019
| https://github.com/matplotlib/matplotlib/pull/10149/commits/134aaf966d48b2d85e35911119ef871d0ff7bf70 |
|
Clear filters
| https://github.com/matplotlib/matplotlib/pull/10149/files |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/10149/files |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/10149/files |
|
2018_12_03_sphinx_plot_preserve.rst
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-03a43babfe6b2ea42185238391b971d28cf499382c9ac4ce07eb2d748e298c2c |
|
plot_directive.py
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
some_plots.rst
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-08da46b74648ed5eacf3e9819072ef928f3d8b18447b0f4909c85feb27cfba43 |
| doc/users/next_whats_new/2018_12_03_sphinx_plot_preserve.rst | https://github.com/matplotlib/matplotlib/pull/10149/files#diff-03a43babfe6b2ea42185238391b971d28cf499382c9ac4ce07eb2d748e298c2c |
|
View file
| https://github.com/r-barnes/matplotlib/blob/134aaf966d48b2d85e35911119ef871d0ff7bf70/doc/users/next_whats_new/2018_12_03_sphinx_plot_preserve.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/matplotlib/matplotlib/pull/10149/{{ revealButtonHref }} |
| timhoffm | https://github.com/timhoffm |
| Nov 24, 2019 | https://github.com/matplotlib/matplotlib/pull/10149/files#r349938403 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/10149/files |
| lib/matplotlib/sphinxext/plot_directive.py | https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
View file
| https://github.com/r-barnes/matplotlib/blob/134aaf966d48b2d85e35911119ef871d0ff7bf70/lib/matplotlib/sphinxext/plot_directive.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/matplotlib/matplotlib/pull/10149/{{ revealButtonHref }} |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
| timhoffm | https://github.com/timhoffm |
| Nov 24, 2019 | https://github.com/matplotlib/matplotlib/pull/10149/files#r349938328 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/10149/files |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-1565d78306cf72de5a28f4e2b196ee2cb09026d1f8aa2dc26178c3a47f3347b8 |
| lib/matplotlib/tests/tinypages/some_plots.rst | https://github.com/matplotlib/matplotlib/pull/10149/files#diff-08da46b74648ed5eacf3e9819072ef928f3d8b18447b0f4909c85feb27cfba43 |
|
View file
| https://github.com/r-barnes/matplotlib/blob/134aaf966d48b2d85e35911119ef871d0ff7bf70/lib/matplotlib/tests/tinypages/some_plots.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/matplotlib/matplotlib/pull/10149/{{ revealButtonHref }} |
|
| https://github.com/matplotlib/matplotlib/pull/10149/files#diff-08da46b74648ed5eacf3e9819072ef928f3d8b18447b0f4909c85feb27cfba43 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |