Mercurial > repos > astroteam > astropy_fits2bitmap
annotate generate_cmaps.py @ 0:cf608e2b1436 draft
planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit 1ed262b482599b257c6b323b154bee2412265dbf-dirty
author | astroteam |
---|---|
date | Thu, 22 Jun 2023 19:38:45 +0000 |
parents | |
children |
rev | line source |
---|---|
0
cf608e2b1436
planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit 1ed262b482599b257c6b323b154bee2412265dbf-dirty
astroteam
parents:
diff
changeset
|
1 from matplotlib import pyplot as plt |
cf608e2b1436
planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit 1ed262b482599b257c6b323b154bee2412265dbf-dirty
astroteam
parents:
diff
changeset
|
2 |
cf608e2b1436
planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit 1ed262b482599b257c6b323b154bee2412265dbf-dirty
astroteam
parents:
diff
changeset
|
3 cmaps = sorted(m for m in plt.cm.datad if not m.endswith("_r")) |
cf608e2b1436
planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit 1ed262b482599b257c6b323b154bee2412265dbf-dirty
astroteam
parents:
diff
changeset
|
4 |
cf608e2b1436
planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit 1ed262b482599b257c6b323b154bee2412265dbf-dirty
astroteam
parents:
diff
changeset
|
5 print("\n".join([f'<option value="{cm}">{cm}</option>' for cm in cmaps])) |