annotate generate_cmaps.py @ 0:01fbfdf7d10f 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:39:08 +0000 (23 months ago)
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
01fbfdf7d10f 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
01fbfdf7d10f planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit 1ed262b482599b257c6b323b154bee2412265dbf-dirty
astroteam
parents:
diff changeset
2
01fbfdf7d10f 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"))
01fbfdf7d10f planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit 1ed262b482599b257c6b323b154bee2412265dbf-dirty
astroteam
parents:
diff changeset
4
01fbfdf7d10f 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]))