pratiman-91 / colormaps Goto Github PK
View Code? Open in Web Editor NEWColormaps is a library of collection of colormaps or color palettes for Python.
License: MIT License
Colormaps is a library of collection of colormaps or color palettes for Python.
License: MIT License
This is relevant to issue mentioned at https://github.com/pratiman-91/colormaps/issues/2
. Can you please upload the package to PyPi? I am sure that this would put you one step closer to making package for conda-forge.
It is difficult to make the package install in automated mode for my project. I am sure that it does not make much time to upload to PyPi as you are already using setup.py.
Good work needs to be utilised by many. Please upload your package to conda-forge
.
Is there a way to list all the supported colormaps by the package as being done for matplotlib with plt.colormaps()
command?
I have a script that uses both GUI and the command line. When I use the script to be used as only the command line, it works without an issue. However, when invoking GUI which is based on PySide6, it produces the following error.
import colormaps as cmaps
File "shibokensupport/signature/loader.py", line 61, in feature_imported
File "shibokensupport/feature.py", line 135, in feature_imported
AttributeError: 'Cmaps' object has no attribute '__name__'
Not able to figure out what went wrong. Can you please help me out on this...
Due to changes in the matplotlib
API (see https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.9.0.html#top-level-cmap-registration-and-access-functions-in-mpl-cm) the colormaps
package is incompatible with matplotlib
versions 3.9.0 and above.
Trying to use the colormaps
package results in the following error: AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap'
because of the aformentioned API change.
Tested with matplotlib
versions 3.8.4 (no error is thrown) and 3.9.0 (the error exists).
This issue is relevant to the issue mentioned at #8. Due to a conflict with PySide6
and colormaps
, I could not use your package. Request you suggest a way to use it without installing it.
Firstly, I should appreciate your effort in collating a large set of scientific colourmaps into a dedicated Python library. I have used it for application and for various other purposes. However, with the latest matplotlib release, I get AttributeError. Minimal example taken from README is as follows:
$ python
Python 3.10.8 | packaged by conda-forge | (main, Nov 22 2022, 08:16:33) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> matplotlib.__version__
'3.6.3'
>>> import colormaps as cmaps
>>> git clone https://github.com/pratiman-91/colormaps.git
KeyboardInterrupt
>>> cmaps.drought_severity
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\JSundar\Downloads\colormaps\colormaps\cmaps.py", line 9251, in drought_severity
if cname in matplotlib.cm._cmap_registry:
File "C:\Users\JSundar\miniconda\envs\wrfplot\lib\site-packages\matplotlib\_api\__init__.py", line 224, in __getattr__
raise AttributeError(
AttributeError: module 'matplotlib.cm' has no attribute '_cmap_registry'. Did you mean: '_gen_cmap_registry'?
It would be nice to update your module to keep up with changes in the upstream matplotlib module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.