René's URL Explorer Experiment


Title: Remember metadata when passing mappables to colorbar() · Issue #81 · proplot-dev/proplot · GitHub

Open Graph Title: Remember metadata when passing mappables to colorbar() · Issue #81 · proplot-dev/proplot

X Title: Remember metadata when passing mappables to colorbar() · Issue #81 · proplot-dev/proplot

Description: I have another suggestion of enhancement regarding what Cartopy does. By default, ProPlot uses the long_name attribute of a DataArray as a title of the figure, but not the units attribute. Here is the default behavior of Cartopy when doi...

Open Graph Description: I have another suggestion of enhancement regarding what Cartopy does. By default, ProPlot uses the long_name attribute of a DataArray as a title of the figure, but not the units attribute. Here is ...

X Description: I have another suggestion of enhancement regarding what Cartopy does. By default, ProPlot uses the long_name attribute of a DataArray as a title of the figure, but not the units attribute. Here is ...

Opengraph URL: https://github.com/proplot-dev/proplot/issues/81

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remember metadata when passing mappables to colorbar()","articleBody":"I have another suggestion of enhancement regarding what **Cartopy** does. By default, **ProPlot** uses the `long_name` attribute of a DataArray as a `title` of the figure, but not the `units` attribute. Here is the default behavior of **Cartopy** when doing a plot (data: [ens_avg_snow_cyclic.zip](https://github.com/lukelbd/proplot/files/3922734/ens_avg_snow_cyclic.zip)):\r\n\r\n```python\r\nimport xarray as xr\r\nimport proplot as plot\r\n\r\nens_avg_snow_cyclic = xr.open_dataarray('ens_avg_snow_cyclic.nc')\r\nens_avg_snow_cyclic.plot()\r\n```\r\n![cartopy_units](https://user-images.githubusercontent.com/20254164/70157882-9ea9ab80-16b6-11ea-92d6-c4502c693b14.jpg)\r\n\r\nIt automatically puts the `long_name` and `units` attribute of the DataArray beside the color bar. In addition, it writes as a title the coordinates left (I didn't do any projection, the goal is only to show the labels here).\r\n\r\nIt would be nice to at least have the `units` after the title in **ProPlot** too, in addition to the actual default behavior shown here:\r\n```python\r\nf, axs = plot.subplots(proj='cyl', width=8)\r\n\r\nm = axs[0].contourf(ens_avg_snow_cyclic, cmap='BuRd')\r\n\r\nf.colorbar(m)\r\n\r\naxs.format(\r\n    geogridlinewidth=0.5, geogridcolor='gray8', geogridalpha=0.5, labels=True, \r\n    coast=True, ocean=True, oceancolor='gray3', latlim=(20,90),\r\n    suptitle=str(ens_avg_snow_cyclic.season.values) + ' climatology'\r\n)\r\n```\r\n![proplot_default](https://user-images.githubusercontent.com/20254164/70158201-242d5b80-16b7-11ea-9a4f-deb705182cb0.jpg)\r\n\r\nLike for example (here are 3 different possibilies I am thinking):\r\n![proplot_default_1](https://user-images.githubusercontent.com/20254164/70158278-458e4780-16b7-11ea-839f-f632d32c8bb3.jpg)\r\n![proplot_default_2](https://user-images.githubusercontent.com/20254164/70158287-47f0a180-16b7-11ea-9bf2-0c52f274ce38.jpg)\r\n![proplot_default_3](https://user-images.githubusercontent.com/20254164/70158290-4921ce80-16b7-11ea-9f7f-3b2b9db6c0f5.jpg)\r\n\r\nOr having the same behavior as **Cartopy** like the 2nd example and putting as a title the left coordinates as `coord_name = values`. Here it is the season, but usually, if we select a date, it shows `time = ...`. After it doesn't have to be like Cartopy, in my opinion adding at least the units would be already nice :)\r\n","author":{"url":"https://github.com/mickaellalande","@type":"Person","name":"mickaellalande"},"datePublished":"2019-12-04T16:07:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/81/proplot/issues/81"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c84f795a-b421-ef22-6c91-37c9b197dc81
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA6A6:2B91BA:AE5DE5:EA3308:697D01F7
html-safe-nonceeeaae0d98634a30eaefeb8d2b59014f2ac71a3845c91decb77636147ef95330c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkE2OjJCOTFCQTpBRTVERTU6RUEzMzA4OjY5N0QwMUY3IiwidmlzaXRvcl9pZCI6IjY2ODMwNzUwMzI1MzQyODY4MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace2878ec48fcea5504e93a792e2e210296677d083dfbed83ffb8626b9acc2eb47
hovercard-subject-tagissue:532783026
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/proplot-dev/proplot/81/issue_layout
twitter:imagehttps://opengraph.githubassets.com/120911cafdd3404a4f7b9a595ed3375da12824c0022d581a5d4b0a7714a77f49/proplot-dev/proplot/issues/81
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/120911cafdd3404a4f7b9a595ed3375da12824c0022d581a5d4b0a7714a77f49/proplot-dev/proplot/issues/81
og:image:altI have another suggestion of enhancement regarding what Cartopy does. By default, ProPlot uses the long_name attribute of a DataArray as a title of the figure, but not the units attribute. Here is ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemickaellalande
hostnamegithub.com
expected-hostnamegithub.com
None82ab524089fe277c33d771c5733c7383effee10e1f09eea2fd04108f9f36da11
turbo-cache-controlno-preview
go-importgithub.com/proplot-dev/proplot git https://github.com/proplot-dev/proplot.git
octolytics-dimension-user_id108025793
octolytics-dimension-user_loginproplot-dev
octolytics-dimension-repository_id113293661
octolytics-dimension-repository_nwoproplot-dev/proplot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id113293661
octolytics-dimension-repository_network_root_nwoproplot-dev/proplot
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
releasea48e5723889d629602a0b34d159dcd5fd1651351
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/proplot-dev/proplot/issues/81#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fproplot-dev%2Fproplot%2Fissues%2F81
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
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%2Fproplot-dev%2Fproplot%2Fissues%2F81
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=proplot-dev%2Fproplot
Reloadhttps://github.com/proplot-dev/proplot/issues/81
Reloadhttps://github.com/proplot-dev/proplot/issues/81
Reloadhttps://github.com/proplot-dev/proplot/issues/81
proplot-dev https://github.com/proplot-dev
proplothttps://github.com/proplot-dev/proplot
Notifications https://github.com/login?return_to=%2Fproplot-dev%2Fproplot
Fork 97 https://github.com/login?return_to=%2Fproplot-dev%2Fproplot
Star 1.1k https://github.com/login?return_to=%2Fproplot-dev%2Fproplot
Code https://github.com/proplot-dev/proplot
Issues 88 https://github.com/proplot-dev/proplot/issues
Pull requests 7 https://github.com/proplot-dev/proplot/pulls
Discussions https://github.com/proplot-dev/proplot/discussions
Actions https://github.com/proplot-dev/proplot/actions
Projects 0 https://github.com/proplot-dev/proplot/projects
Security 0 https://github.com/proplot-dev/proplot/security
Insights https://github.com/proplot-dev/proplot/pulse
Code https://github.com/proplot-dev/proplot
Issues https://github.com/proplot-dev/proplot/issues
Pull requests https://github.com/proplot-dev/proplot/pulls
Discussions https://github.com/proplot-dev/proplot/discussions
Actions https://github.com/proplot-dev/proplot/actions
Projects https://github.com/proplot-dev/proplot/projects
Security https://github.com/proplot-dev/proplot/security
Insights https://github.com/proplot-dev/proplot/pulse
New issuehttps://github.com/login?return_to=https://github.com/proplot-dev/proplot/issues/81
New issuehttps://github.com/login?return_to=https://github.com/proplot-dev/proplot/issues/81
Remember metadata when passing mappables to colorbar()https://github.com/proplot-dev/proplot/issues/81#top
featurehttps://github.com/proplot-dev/proplot/issues?q=state%3Aopen%20label%3A%22feature%22
Version 0.9https://github.com/proplot-dev/proplot/milestone/1
https://github.com/mickaellalande
https://github.com/mickaellalande
mickaellalandehttps://github.com/mickaellalande
on Dec 4, 2019https://github.com/proplot-dev/proplot/issues/81#issue-532783026
ens_avg_snow_cyclic.ziphttps://github.com/lukelbd/proplot/files/3922734/ens_avg_snow_cyclic.zip
https://user-images.githubusercontent.com/20254164/70157882-9ea9ab80-16b6-11ea-92d6-c4502c693b14.jpg
https://user-images.githubusercontent.com/20254164/70158201-242d5b80-16b7-11ea-9a4f-deb705182cb0.jpg
https://user-images.githubusercontent.com/20254164/70158278-458e4780-16b7-11ea-839f-f632d32c8bb3.jpg
https://user-images.githubusercontent.com/20254164/70158287-47f0a180-16b7-11ea-9bf2-0c52f274ce38.jpg
https://user-images.githubusercontent.com/20254164/70158290-4921ce80-16b7-11ea-9f7f-3b2b9db6c0f5.jpg
featurehttps://github.com/proplot-dev/proplot/issues?q=state%3Aopen%20label%3A%22feature%22
Version 0.9https://github.com/proplot-dev/proplot/milestone/1
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.