René's URL Explorer Experiment


Title: Off-axes scatter() points unnecessarily saved to PDF when coloured · Issue #2488 · matplotlib/matplotlib · GitHub

Open Graph Title: Off-axes scatter() points unnecessarily saved to PDF when coloured · Issue #2488 · matplotlib/matplotlib

X Title: Off-axes scatter() points unnecessarily saved to PDF when coloured · Issue #2488 · matplotlib/matplotlib

Description: Scatter plotting a bunch of points while specifying the colour of each point, then changing the axes limits so none of the points are visible, and then saving the result to a PDF, results in a file just as big as if the points were all v...

Open Graph Description: Scatter plotting a bunch of points while specifying the colour of each point, then changing the axes limits so none of the points are visible, and then saving the result to a PDF, results in a file...

X Description: Scatter plotting a bunch of points while specifying the colour of each point, then changing the axes limits so none of the points are visible, and then saving the result to a PDF, results in a file...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2488

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Off-axes scatter() points unnecessarily saved to PDF when coloured","articleBody":"Scatter plotting a bunch of points while specifying the colour of each point, then changing the axes limits so none of the points are visible, and then saving the result to a PDF, results in a file just as big as if the points were all visible within their default axes limits. This doesn't seem to happen if the colour arg isn't passed to `scatter()`. I haven't tried, but specifying other kinds of point specific attributes, like size, might also trigger the problem . Also, I haven't tried any of the other vector backends, but they may be affected as well.\n\nThis came out of #2423.\n\nExample code:\n\n``` python\nimport numpy as np\nx = np.random.random(20000)\ny = np.random.random(20000)\nc = np.random.random(20000)\n\nfigure()\nscatter(x, y)\npyplot.savefig('scatter.pdf')\nxlim(2, 3) # move axes away for empty plot\npyplot.savefig('scatter_empty.pdf')\n'''\nfile sizes in bytes:\nscatter.pdf:       324187\nscatter_empty.pdf:   6617\n'''\nfigure()\nscatter(x, y, c=c)\npyplot.savefig('scatter_color.pdf')\nxlim(2, 3) # move axes away for empty plot\npyplot.savefig('scatter_color_empty.pdf')\n'''\nfile sizes in bytes:\nscatter_color.pdf:       410722\nscatter_color_empty.pdf: 413541\n'''\n```\n","author":{"url":"https://github.com/mspacek","@type":"Person","name":"mspacek"},"datePublished":"2013-10-02T14:43:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/2488/matplotlib/issues/2488"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2381af32-e515-1206-989d-59ebbe32d356
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9BA2:1D90CC:28FB570:38F1EB7:6A4F56A2
html-safe-nonceb483f60919fd295da104d3cbdbdccc7a3ec3c95404c6ee5a340c779c7a94f440
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkEyOjFEOTBDQzoyOEZCNTcwOjM4RjFFQjc6NkE0RjU2QTIiLCJ2aXNpdG9yX2lkIjoiMzk2MDIwMTk1MTcwNzA5MjY0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac529d5fec549a6d9457037c82bf2aac1a8dad46cd8ac8dad7811e6d260df8adb5
hovercard-subject-tagissue:20398429
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/2488/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1da9807998a7195db3f033b1d440750d7b39198efe11a00ae4661a8618e0cf20/matplotlib/matplotlib/issues/2488
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1da9807998a7195db3f033b1d440750d7b39198efe11a00ae4661a8618e0cf20/matplotlib/matplotlib/issues/2488
og:image:altScatter plotting a bunch of points while specifying the colour of each point, then changing the axes limits so none of the points are visible, and then saving the result to a PDF, results in a file...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemspacek
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/2488#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F2488
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2Fissues%2F2488
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/2488
Reloadhttps://github.com/matplotlib/matplotlib/issues/2488
Reloadhttps://github.com/matplotlib/matplotlib/issues/2488
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/2488
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/2488
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 410 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
#30746https://github.com/matplotlib/matplotlib/pull/30746
Off-axes scatter() points unnecessarily saved to PDF when colouredhttps://github.com/matplotlib/matplotlib/issues/2488#top
#30746https://github.com/matplotlib/matplotlib/pull/30746
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Difficulty%3A%20Medium%22
Good first issueOpen a pull request against these issues if there are no active ones!https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Good%20first%20issue%22
Performancehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Performance%22
backend: pdfhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22backend%3A%20pdf%22
v3.11.0https://github.com/matplotlib/matplotlib/milestone/96
https://github.com/mspacek
mspacekhttps://github.com/mspacek
on Oct 2, 2013https://github.com/matplotlib/matplotlib/issues/2488#issue-20398429
#2423https://github.com/matplotlib/matplotlib/pull/2423
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Difficulty%3A%20Medium%22
Good first issueOpen a pull request against these issues if there are no active ones!https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Good%20first%20issue%22
Performancehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Performance%22
backend: pdfhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22backend%3A%20pdf%22
v3.11.0https://github.com/matplotlib/matplotlib/milestone/96
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.