Git Product home page Git Product logo

colormaps's Issues

Incompatibility with `matplotlib` versions from 3.9.0 going forward

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).

Colormaps does not work with latest matplotlib 3.6.3

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.

Incompatabilities between PySide6 and colormaps

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...

How to use package without installing?

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.

Upload colormaps package to PyPi for helping in automation

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.