Cmasher

Latest version: v1.8.0

Safety actively analyzes 630602 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

1.4.0

*This is the v1.4.0 release of the CMasher package.*

**New additions/changes:**
- Added the *bubblegum*; *fall*; *pepper*; *swamp*; *watermelon*; and *wildfire* colormaps;
- Reworked the *dusk* colormap into a [0, 85] sequential colormap;
- Reworked the *horizon* colormap into a [20, 100] sequential colormap;
- Reworked the *nuclear* colormap into a [0, 90] sequential colormap;
- Revamped the online documentation to create separate webpages for each colormap;
- Online documentation now includes examples of each utility function that *CMasher* has;
- Added the `get_sub_cmap`; `set_cmap_legend_entry`; and `take_cmap_colors` functions;
- Split off the registration part of the `import_cmaps` function into the `register_cmap` function;
- Converted the `_get_cm_type` function into the public `get_cmap_type` function;
- Added 8-bit RGB text-files of each colormap to the appropriate colormap directory;
- Added stand-alone Python modules of each colormap as well;
- The `create_cmap_overview` function now treats diverging colormaps differently when sorting on their lightness profiles (takes central value instead of starting value).

1.3.0

*This is the v1.3.0 release of the CMasher package.*

**New additions:**
- Added the *ocean*; *pride*; *savanna*; and *viola* colormaps;
- Added the `get_bibtex` function to retrieve the BibTeX entry of the *CMasher* paper;
- Added the 'plot_profile' argument to the `create_cmap_overview` function.
When set to True, the created overview will contain the lightness profile of the colormaps plotted on top of their grey-scale versions.
This allows for more in-depth information on the performance of a colormap.


**Bugfixes:**
- Fixed a bug where diverging colormaps with plateaus in the center of their lightness profiles, would be flagged as 'misc'.


**Changes/Optimizations:**
- Made several optimizations to the `create_cmap_overview` function to allow it to be efficiently saved as an SVG-file (saving as SVG will now result in a much smaller file size than its PNG equivalent, despite being of a higher quality);
- Made several QoL changes to the online docs, including saving the colormap images as SVG-files to make them faster to load on mobile (using the aforementioned optimizations);
- As [my modified version of *viscm*](https://github.com/1313e/viscm) contains a fix allowing it to handle diverging colormaps better, replaced the dual source files of all diverging colormaps with single files.

1.2.2

This is the first official release of the *CMasher* package, to accommodate for the submission of the JOSS paper.

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.