Title: Add from_file colormap generator and random color cycle generator · Issue #66 · proplot-dev/proplot · GitHub
Open Graph Title: Add from_file colormap generator and random color cycle generator · Issue #66 · proplot-dev/proplot
X Title: Add from_file colormap generator and random color cycle generator · Issue #66 · proplot-dev/proplot
Description: I want to add a few new color usage features at some point: Consider adding some of the NASA colormaps listed here, and consider adding back Fabio Crameri's colormaps (version 0.5.0). Add the image reader tool from climate_science_colorm...
Open Graph Description: I want to add a few new color usage features at some point: Consider adding some of the NASA colormaps listed here, and consider adding back Fabio Crameri's colormaps (version 0.5.0). Add the image...
X Description: I want to add a few new color usage features at some point: Consider adding some of the NASA colormaps listed here, and consider adding back Fabio Crameri's colormaps (version 0.5.0). Add the i...
Opengraph URL: https://github.com/proplot-dev/proplot/issues/66
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add from_file colormap generator and random color cycle generator","articleBody":"I want to add a few new color usage features at some point:\r\n\r\n* Consider adding some of the [NASA colormaps](https://www.giss.nasa.gov/tools/panoply/colorbars/) listed here, and ~~consider adding back [Fabio Crameri's colormaps](http://www.fabiocrameri.ch/colourmaps.php)~~ (version 0.5.0).\r\n* Add the image reader tool from [climate_science_colormapping](bradyrx/climate_science_colormapping) for loading colormaps. In #50 I added `LinearSegmentedColormap.from_file` and `ListedColormap.from_file` methods that load lists of hex strings, etc. I can let these methods read JPG and PNG files too. For colormaps, we try to read colors along the *long-axis* of the image (possibly with smoothing?), and for color cycles, we try to get *distinct* colors in the image. The latter would let us easily load cycles from tools like [Color Hunt](https://colorhunt.co/palette/163683).\r\n* ProPlot can already be used to make new colormaps, but it should also be capable of making new color cycles. I can write an algorithm that selects random colors that are \"sufficiently distinct\" in perceptually uniform colorspace by (1) picking a random HCL coordinate, then (2) stepping in random directions in HCL space such that `delta_min \u003c= square_root(delta_chroma^2 + delta_luminance^2 + min(delta_hue, 360 - delta_hue)^2) \u003c= delta_max`. The `random_cycle` function should accept an initial color and the `delta_min` and `delta_max` bounds as optional arguments, and the value of `delta` can be randomly selected between those bounds, then randomly divided into hue, chroma, and luminance steps. \r\n\r\nThese are not a release priority but would be cool.","author":{"url":"https://github.com/lukelbd","@type":"Person","name":"lukelbd"},"datePublished":"2019-11-19T19:20:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/66/proplot/issues/66"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4ff23480-af6f-21ed-bb73-c8904337e276 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C05C:268D1C:313D7B:4443F9:697CDB99 |
| html-safe-nonce | ae87e8f40b762ac1db145fd27965e9fe5c4fb1ed40ac9864f44c9e79251c10d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDVDOjI2OEQxQzozMTNEN0I6NDQ0M0Y5OjY5N0NEQjk5IiwidmlzaXRvcl9pZCI6IjMzNDQ2OTg0Nzc3OTA0MTk4NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dddbf069c67b43d7385e83c639ce4e76cfe174e40c7c2132a6e0d5980fa91791 |
| hovercard-subject-tag | issue:525212075 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/proplot-dev/proplot/66/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9f98eba7fe7510b735af9fb4ff2f286c42f2039772883637aef31bd0a2cb9702/proplot-dev/proplot/issues/66 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9f98eba7fe7510b735af9fb4ff2f286c42f2039772883637aef31bd0a2cb9702/proplot-dev/proplot/issues/66 |
| og:image:alt | I want to add a few new color usage features at some point: Consider adding some of the NASA colormaps listed here, and consider adding back Fabio Crameri's colormaps (version 0.5.0). Add the image... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lukelbd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f20df5019a7f846ce01350c443b1b5209bcc8b08d1ff80f92fdef440a0c7c89 |
| turbo-cache-control | no-preview |
| go-import | github.com/proplot-dev/proplot git https://github.com/proplot-dev/proplot.git |
| octolytics-dimension-user_id | 108025793 |
| octolytics-dimension-user_login | proplot-dev |
| octolytics-dimension-repository_id | 113293661 |
| octolytics-dimension-repository_nwo | proplot-dev/proplot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 113293661 |
| octolytics-dimension-repository_network_root_nwo | proplot-dev/proplot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0f08fae6208283a46e6e5febf9878b9cdddfaa23 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width