Skip to content

Refactor colormap loading in cebra.integrations.plotly.plot_embedding_interactive for matplotlib 3.11 #240

Description

@stes

Right now, the colormap functionality will break in matplotlib 3.11 (not released yet). The future-proof fix should refactor this functionality, for now I am pinning the max. version to <3.11 to avoid breaking changes once new matplotlib version is out.

cebra/integrations/plotly.py::cebra.integrations.plotly.plot_embedding_interactive
  /app/cebra/integrations/plotly.py:90: MatplotlibDeprecationWarning:
  
  The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead.

After resolution, the pinning in setup.cfg can be removed (also see comment there).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions