René's URL Explorer Experiment


Title: Lightsource enhancements by joferkington · Pull Request #3291 · matplotlib/matplotlib · GitHub

Open Graph Title: Lightsource enhancements by joferkington · Pull Request #3291 · matplotlib/matplotlib

X Title: Lightsource enhancements by joferkington · Pull Request #3291 · matplotlib/matplotlib

Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.

Open Graph Description: Currently, colors.LightSource preforms "hillshading" through methods that appear visually unrealistic in some cases (particularly topographic surfaces). This pull request: Refactors Li...

X Description: Currently, colors.LightSource preforms "hillshading" through methods that appear visually unrealistic in some cases (particularly topographic surfaces). This pull request: Refa...

Opengraph URL: https://github.com/matplotlib/matplotlib/pull/3291

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

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/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:c8ed4352-6fd3-2ffd-c3e8-0f4ca0dd77f6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB968:CCFBF:205CC2B:2AD9900:6B0699A8
html-safe-noncecf9d873408196bf2a42bd2db288559b6fa155c90ceffbde1e764ce0a1b4d2df4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTY4OkNDRkJGOjIwNUNDMkI6MkFEOTkwMDo2QjA2OTlBOCIsInZpc2l0b3JfaWQiOiI2MzYxMTk5NzI5NDQ3NDQyODU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9557a7ef3bdfe0d753f773c0304c6ffa091ce427b34a9dae08dc11fcae568187
hovercard-subject-tagpull_request:18755182
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/matplotlib/matplotlib/pull/3291/commits
twitter:imagehttps://opengraph.githubassets.com/2fb7be577bd0d07e62af57db6bcb1b381213df35261051fc84b4905d845a5d4f/matplotlib/matplotlib/pull/3291
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2fb7be577bd0d07e62af57db6bcb1b381213df35261051fc84b4905d845a5d4f/matplotlib/matplotlib/pull/3291
og:image:altCurrently, colors.LightSource preforms "hillshading" through methods that appear visually unrealistic in some cases (particularly topographic surfaces). This pull request: Refactors Li...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejoferkington
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-cache
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
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/pull/3291/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F3291%2Fcommits
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%2Fpull%2F3291%2Fcommits
Sign uphttps://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%2Fcommits&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/pull/3291/commits
Reloadhttps://github.com/matplotlib/matplotlib/pull/3291/commits
Reloadhttps://github.com/matplotlib/matplotlib/pull/3291/commits
matplotlibhttps://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Codehttps://github.com/matplotlib/matplotlib
Issues1k (1k)https://github.com/matplotlib/matplotlib/issues
Pull requests429 (429)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
jenshnielsenhttps://github.com/jenshnielsen
matplotlib:masterhttps://github.com/matplotlib/matplotlib/tree/master
joferkington:lightsource-enhancementshttps://github.com/joferkington/matplotlib/tree/lightsource-enhancements
Conversationhttps://github.com/matplotlib/matplotlib/pull/3291
Commits19 (19)https://github.com/matplotlib/matplotlib/pull/3291/commits
Checkshttps://github.com/matplotlib/matplotlib/pull/3291/checks
Files changedhttps://github.com/matplotlib/matplotlib/pull/3291/files
Lightsource enhancementshttps://github.com/matplotlib/matplotlib/pull/3291/commits#top
jenshnielsenhttps://github.com/jenshnielsen
matplotlib:masterhttps://github.com/matplotlib/matplotlib/tree/master
joferkington:lightsource-enhancementshttps://github.com/joferkington/matplotlib/tree/lightsource-enhancements
Refactored LightSource.shade_rgb into three separate functionshttps://github.com/matplotlib/matplotlib/pull/3291/commits/ee99cf589efc675cc524d70a15343f46b5293807
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
ee99cf5https://github.com/matplotlib/matplotlib/pull/3291/commits/ee99cf589efc675cc524d70a15343f46b5293807
https://github.com/matplotlib/matplotlib/tree/ee99cf589efc675cc524d70a15343f46b5293807
Added support for vertical exag and non-uniform spacing to LightSourcehttps://github.com/matplotlib/matplotlib/pull/3291/commits/4faa4548c4cf2af3dc7d028379a3146169d7b139
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
4faa454https://github.com/matplotlib/matplotlib/pull/3291/commits/4faa4548c4cf2af3dc7d028379a3146169d7b139
https://github.com/matplotlib/matplotlib/tree/4faa4548c4cf2af3dc7d028379a3146169d7b139
Added new blending modes to LightSource for more realistic renderinghttps://github.com/matplotlib/matplotlib/pull/3291/commits/a1af495e106cda69c160e0d7b6ec02acd3d55537
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
a1af495https://github.com/matplotlib/matplotlib/pull/3291/commits/a1af495e106cda69c160e0d7b6ec02acd3d55537
https://github.com/matplotlib/matplotlib/tree/a1af495e106cda69c160e0d7b6ec02acd3d55537
Updated shading example to show new styles and added exmaple DEM from SRTM datahttps://github.com/matplotlib/matplotlib/pull/3291/commits/ed5cd76d231a8279633bde02e6549350c005fa82
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
ed5cd76https://github.com/matplotlib/matplotlib/pull/3291/commits/ed5cd76d231a8279633bde02e6549350c005fa82
https://github.com/matplotlib/matplotlib/tree/ed5cd76d231a8279633bde02e6549350c005fa82
Make the "fraction" kwarg behave as it did before recent LightSource enhancementshttps://github.com/matplotlib/matplotlib/pull/3291/commits/0db6341ca220878f925df8b0fe230f81954766e9
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
0db6341https://github.com/matplotlib/matplotlib/pull/3291/commits/0db6341ca220878f925df8b0fe230f81954766e9
https://github.com/matplotlib/matplotlib/tree/0db6341ca220878f925df8b0fe230f81954766e9
Strip whitespace and strict PEP8 compliancehttps://github.com/matplotlib/matplotlib/pull/3291/commits/52434ff91ab6ab31b09b14ee187a0fede11b049d
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
52434ffhttps://github.com/matplotlib/matplotlib/pull/3291/commits/52434ff91ab6ab31b09b14ee187a0fede11b049d
https://github.com/matplotlib/matplotlib/tree/52434ff91ab6ab31b09b14ee187a0fede11b049d
Avoid potential divide by zero in LightSource.hillshadehttps://github.com/matplotlib/matplotlib/pull/3291/commits/108eac73ecd256cb9728d54c2593cadac31cc650
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
108eac7https://github.com/matplotlib/matplotlib/pull/3291/commits/108eac73ecd256cb9728d54c2593cadac31cc650
https://github.com/matplotlib/matplotlib/tree/108eac73ecd256cb9728d54c2593cadac31cc650
Fix calculation of aspect for hillshading.https://github.com/matplotlib/matplotlib/pull/3291/commits/f37438332cf34680892148ba616cc5a411cd8325
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
f374383https://github.com/matplotlib/matplotlib/pull/3291/commits/f37438332cf34680892148ba616cc5a411cd8325
https://github.com/matplotlib/matplotlib/tree/f37438332cf34680892148ba616cc5a411cd8325
Make clipping work properly for effectively planar surfaceshttps://github.com/matplotlib/matplotlib/pull/3291/commits/3c9cacf5c16f7e177382ab31ceb7386453235a0a
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
3c9cacfhttps://github.com/matplotlib/matplotlib/pull/3291/commits/3c9cacf5c16f7e177382ab31ceb7386453235a0a
https://github.com/matplotlib/matplotlib/tree/3c9cacf5c16f7e177382ab31ceb7386453235a0a
Added tests for LightSource functionalityhttps://github.com/matplotlib/matplotlib/pull/3291/commits/51e9a6cc51ded7f498115d8d7b2d8df53a9bafb4
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
51e9a6chttps://github.com/matplotlib/matplotlib/pull/3291/commits/51e9a6cc51ded7f498115d8d7b2d8df53a9bafb4
https://github.com/matplotlib/matplotlib/tree/51e9a6cc51ded7f498115d8d7b2d8df53a9bafb4
Added example of using the custom hillshading on a 3D surface plothttps://github.com/matplotlib/matplotlib/pull/3291/commits/31a42396742419842dc9dd2e7f8fb94fe3ed52b2
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
31a4239https://github.com/matplotlib/matplotlib/pull/3291/commits/31a42396742419842dc9dd2e7f8fb94fe3ed52b2
https://github.com/matplotlib/matplotlib/tree/31a42396742419842dc9dd2e7f8fb94fe3ed52b2
PEP8 fixeshttps://github.com/matplotlib/matplotlib/pull/3291/commits/b3e2e3d93c9e58a8e7f0fb0e0aa0f629e098b1b7
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
b3e2e3dhttps://github.com/matplotlib/matplotlib/pull/3291/commits/b3e2e3d93c9e58a8e7f0fb0e0aa0f629e098b1b7
https://github.com/matplotlib/matplotlib/tree/b3e2e3d93c9e58a8e7f0fb0e0aa0f629e098b1b7
Avoid leaking file descriptors in tests and exampleshttps://github.com/matplotlib/matplotlib/pull/3291/commits/bdbc7df2579b6fabf606c720d9646177541c0cc9
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
bdbc7dfhttps://github.com/matplotlib/matplotlib/pull/3291/commits/bdbc7df2579b6fabf606c720d9646177541c0cc9
https://github.com/matplotlib/matplotlib/tree/bdbc7df2579b6fabf606c720d9646177541c0cc9
Added more exampleshttps://github.com/matplotlib/matplotlib/pull/3291/commits/71cb78653e490d01dee0cf41b69344087fb950ce
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
71cb786https://github.com/matplotlib/matplotlib/pull/3291/commits/71cb78653e490d01dee0cf41b69344087fb950ce
https://github.com/matplotlib/matplotlib/tree/71cb78653e490d01dee0cf41b69344087fb950ce
Fixed hillshading problems with masked elevation arrayshttps://github.com/matplotlib/matplotlib/pull/3291/commits/4afed00d7a90d07a958adf09c8b5ab81f7b52e67
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
4afed00https://github.com/matplotlib/matplotlib/pull/3291/commits/4afed00d7a90d07a958adf09c8b5ab81f7b52e67
https://github.com/matplotlib/matplotlib/tree/4afed00d7a90d07a958adf09c8b5ab81f7b52e67
Added array comparison tests for shaded reliefhttps://github.com/matplotlib/matplotlib/pull/3291/commits/abf8b87a6a49fbdae3a18b9de4d2d8bc70b180eb
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
abf8b87https://github.com/matplotlib/matplotlib/pull/3291/commits/abf8b87a6a49fbdae3a18b9de4d2d8bc70b180eb
https://github.com/matplotlib/matplotlib/tree/abf8b87a6a49fbdae3a18b9de4d2d8bc70b180eb
Strict PEP8 compliance for printed arrayshttps://github.com/matplotlib/matplotlib/pull/3291/commits/ba1f492e796e3baa48f8a51df19e6d8e2e3a7cde
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
ba1f492https://github.com/matplotlib/matplotlib/pull/3291/commits/ba1f492e796e3baa48f8a51df19e6d8e2e3a7cde
https://github.com/matplotlib/matplotlib/tree/ba1f492e796e3baa48f8a51df19e6d8e2e3a7cde
Added *vmin* and *vmax* arguments to LightSource.shadehttps://github.com/matplotlib/matplotlib/pull/3291/commits/ab40a2f2de9cfff9f48fdde7b62a29cdebc197b7
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
ab40a2fhttps://github.com/matplotlib/matplotlib/pull/3291/commits/ab40a2f2de9cfff9f48fdde7b62a29cdebc197b7
https://github.com/matplotlib/matplotlib/tree/ab40a2f2de9cfff9f48fdde7b62a29cdebc197b7
Added LightSource changes summary to CHANGELOGhttps://github.com/matplotlib/matplotlib/pull/3291/commits/9fce26ce432c92d2fa0b0eeb14ec0e9dff3e29a1
https://github.com/joferkington
joferkingtonhttps://github.com/matplotlib/matplotlib/commits?author=joferkington
9fce26chttps://github.com/matplotlib/matplotlib/pull/3291/commits/9fce26ce432c92d2fa0b0eeb14ec0e9dff3e29a1
https://github.com/matplotlib/matplotlib/tree/9fce26ce432c92d2fa0b0eeb14ec0e9dff3e29a1
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.