https://github.com/uba/cmap2png
Useful script to convert a color map definition to PNG image file.
https://github.com/uba/cmap2png
colormap converter cpt data-science data-visualization matplotlib plot png python
Last synced: 5 months ago
JSON representation
Useful script to convert a color map definition to PNG image file.
- Host: GitHub
- URL: https://github.com/uba/cmap2png
- Owner: uba
- License: gpl-3.0
- Created: 2020-04-02T19:57:42.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T15:05:07.000Z (almost 2 years ago)
- Last Synced: 2025-03-05T00:45:55.389Z (11 months ago)
- Topics: colormap, converter, cpt, data-science, data-visualization, matplotlib, plot, png, python
- Language: Python
- Size: 136 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cmap2png
Useful script to convert a color map definition to PNG image file.
## Usage
```
cmap2png.py [-h] cmapType cmapId min max tick label output
positional arguments:
cmapType Colormap type: [cpt, h2g or matplotlib]
cmapId Colormap identifier or path to colormap file
min Legend minimum value
max Legend maximum value
tick Legend tick frequency
label Legend label
output Result output path
optional arguments:
-h, --help show this help message and exit
```
## Examples
```bash
cmap2png.py matplotlib Greys -55.0 72.0 10.0 "Brightness Temperature ($^{\circ}$C)" legend-celsius-en.png
```
```bash
cmap2png.py cpt WVCOLOR35.cpt -100.0 100.0 20.0 "My awesome label" legend.png
```
## Build-All
























