René's URL Explorer Experiment


Title: plot line not shown in some cases involving masked arrays · Issue #5016 · matplotlib/matplotlib · GitHub

Open Graph Title: plot line not shown in some cases involving masked arrays · Issue #5016 · matplotlib/matplotlib

X Title: plot line not shown in some cases involving masked arrays · Issue #5016 · matplotlib/matplotlib

Description: The following code is a short test of the much longer problem in my code: import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) a=np.arange(2428, dtype=np.float64) a[0:1553] = 1.96808407167e+243 ...

Open Graph Description: The following code is a short test of the much longer problem in my code: import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) a=np.arange(2428, dtype=np....

X Description: The following code is a short test of the much longer problem in my code: import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) a=np.arange(2428, dtype=np....

Mail addresses
notifications@github.com

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"plot line not shown in some cases involving masked arrays","articleBody":"The following code is a short test of the much longer problem in my code:\n\n```\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nfig = plt.figure()\nax = fig.add_subplot(111)\n\na=np.arange(2428, dtype=np.float64)\na[0:1553] = 1.96808407167e+243\na=np.ma.masked_greater(a, 1.e100)\n\nax.plot(a[678:], a[678:], linestyle=':', label='works')\nax.plot(a, a, label='does not work')\nax.plot(a[677:], a[677:], label='also does not work')\n\nax.legend()\nplt.show()\n```\n\nI create an array of dtype float64, and mask part of it (to mimic the data I found this with). I would then expect all plots to show something (and usually just use the second of the three here). Leaving out part of the masked values seems to help (first plot), but that part cannot be too small (third plot). Interestingly, even if plot 1 is commented out, the limits of the axes are correct: plot() itself seems to understand what it is supposed to be doing. It is just the 'line' that does not show up in the final image (neither with show() now savefig()).\n\nAt this point I am out of ideas, this suggesting somehow strongly to be a bug outside of this script.\n\nThis happens on a Debian Jessi machine, with both combinations of:\n\npython 2.7.9 + numpy 1.8.2 + matplotlib 1.4.2\npython 3.4.2 + numpy 1.8.2 + matplotlib 1.4.2\n","author":{"url":"https://github.com/knarrff","@type":"Person","name":"knarrff"},"datePublished":"2015-09-01T18:13:18Z","url":"https://github.com/matplotlib/matplotlib/issues/5016"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6de7fde5-420b-1806-d5ae-78f90c1c1bb4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8FD6:C5B62:EACC5E:13F39A6:6B0654AF
html-safe-nonce746f50552f3b1ecd60138258243a4f6bdd6c29beb1c9142aa052d4539f24bba6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkQ2OkM1QjYyOkVBQ0M1RToxM0YzOUE2OjZCMDY1NEFGIiwidmlzaXRvcl9pZCI6IjU1OTAzMzYwMjcwNDM5NzYzNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd27cf56c09459d2a297c08c3d1850a961ff39465764b535ccf9779e487adfc41
hovercard-subject-tagissue:104324126
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/5016/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0ba8faad143ee16f6ea51b2d437e6c796526789b0eba4ba3c077b25e35a405ca/matplotlib/matplotlib/issues/5016
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0ba8faad143ee16f6ea51b2d437e6c796526789b0eba4ba3c077b25e35a405ca/matplotlib/matplotlib/issues/5016
og:image:altThe following code is a short test of the much longer problem in my code: import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) a=np.arange(2428, dtype=np....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameknarrff
hostnamegithub.com
expected-hostnamegithub.com
None6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297
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
release7f0aa75f4141d440c6110dc31af7ea7797abb6c4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/5016#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F5016
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F5016
Sign uphttps://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/5016
Reloadhttps://github.com/matplotlib/matplotlib/issues/5016
Reloadhttps://github.com/matplotlib/matplotlib/issues/5016
matplotlibhttps://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Codehttps://github.com/matplotlib/matplotlib
Issues1k (1k)https://github.com/matplotlib/matplotlib/issues
Pull requests430 (430)https://github.com/matplotlib/matplotlib/pulls
Actionshttps://github.com/matplotlib/matplotlib/actions
Projectshttps://github.com/matplotlib/matplotlib/projects
Wikihttps://github.com/matplotlib/matplotlib/wiki
Security and qualityhttps://github.com/matplotlib/matplotlib/security
Insightshttps://github.com/matplotlib/matplotlib/insights
https://github.com/matplotlib/matplotlib
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/5016
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/5016
plot line not shown in some cases involving masked arrayshttps://github.com/matplotlib/matplotlib/issues/5016#top
status: confirmed bughttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20confirmed%20bug%22
v1.5.0https://github.com/matplotlib/matplotlib/milestone/18
https://github.com/knarrff
knarrffhttps://github.com/knarrff
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#issue-104324126
https://github.com/WeatherGod
WeatherGodhttps://github.com/WeatherGod
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136820718
tacaswellhttps://github.com/tacaswell
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#event-398153613
tacaswellhttps://github.com/tacaswell
status: confirmed bughttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20confirmed%20bug%22
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#event-398153777
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136827210
#4525https://github.com/matplotlib/matplotlib/issues/4525
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136830372
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/lines.py#L597https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/lines.py#L597
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136833491
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136845591
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/lines.py#L635https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/lines.py#L635
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/lines.py#L699https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/lines.py#L699
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136846808
@efiringhttps://github.com/efiring
https://github.com/efiring
efiringhttps://github.com/efiring
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136852942
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136857096
https://github.com/efiring
efiringhttps://github.com/efiring
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136865023
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136865940
#5016 (comment)https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136865023
https://github.com/efiring
efiringhttps://github.com/efiring
on Sep 1, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136883327
https://github.com/efiring
efiringhttps://github.com/efiring
on Sep 2, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-136970600
https://github.com/efiring
efiringhttps://github.com/efiring
on Sep 3, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-137570270
@mdboomhttps://github.com/mdboom
@tacaswellhttps://github.com/tacaswell
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Sep 3, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-137582493
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Sep 3, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-137587338
mdboomhttps://github.com/mdboom
on Sep 4, 2015https://github.com/matplotlib/matplotlib/issues/5016#event-400689211
Fix Agg clippinghttps://github.com/mdboom/matplotlib/commit/7120bbc445869f76b3dc348e4a992bbc81b2a7e4
7120bbchttps://github.com/mdboom/matplotlib/commit/7120bbc445869f76b3dc348e4a992bbc81b2a7e4
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Sep 4, 2015https://github.com/matplotlib/matplotlib/issues/5016#issuecomment-137613356
@efiringhttps://github.com/efiring
#5023https://github.com/matplotlib/matplotlib/pull/5023
jenshnielsenhttps://github.com/jenshnielsen
completedhttps://github.com/matplotlib/matplotlib/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
6e281f0https://github.com/matplotlib/matplotlib/commit/6e281f0b3f0d67acca779288f4503ff12eddcf57
on Sep 6, 2015https://github.com/matplotlib/matplotlib/issues/5016#event-402238602
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/5016
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/5016
status: confirmed bughttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20confirmed%20bug%22
v1.5.0https://github.com/matplotlib/matplotlib/milestone/18
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.