Export custom colormaps in readable formats
See original GitHub issueI think it would be useful to have an export=bool
command on plot.Colormap
. Currently, save=True
just saves it to ~/.proplot/cmaps
as a json that seems to be readable to just proplot
. It would be great to be able to export it as an xml, hex, etc. to then import into other tools and software.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Can I Create a Customized Colormap File in ArcGIS? - Esri
This allows you to export or import CLR files. To save your colormap, click the Colormap button, and then click Export Colormap.
Read more >Is there a way to save a custom matplotlib colorbar to use ...
I am aware of ways of loading external colormaps in matplotlib (e.g. shown here and here). From NASA GISS's Panoply documentation: Color Palette ......
Read more >Creating Colormaps in Matplotlib
ListedColormap s store their color values in a .colors attribute. The list of colors that comprise the colormap can be directly accessed using...
Read more >How to Export Raster with same classification colors seen in ...
When you are ready to save the color scheme, click the Colormap button and click Export a Colormap. Choose the location and name...
Read more >How to Create a Custom Label Colormap - Xtra Library
This short video explains how to create and export a label colormap from the Segmentation Editor.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You read my mind 😃 In #57, I’m implementing all colormaps as subclasses of the
matplotlib.colors.Colormap
class. The subclass will add asave()
method that can take optional arguments for the save format, save location, etc. Then passingsave=True
toplot.Colormap()
will just callcmap.save()
, where the defaultcmap.save()
behavior will be to save in~/.proplot/cmaps
.That looks great.