8000 Matplotlib deprecation for clim · Issue #890 · wright-group/WrightTools · GitHub
[go: up one dir, main page]

Skip to content
Matplotlib deprecation for clim #890
@ksunden

Description

@ksunden
/home/kyle/venvs/source/WrightTools/WrightTools/artists/_base.py:532: MatplotlibDeprecationWarning:
The process_projection_requirements function was deprecated in Matplotlib 3.1 and will be removed in 3.3.
  self, *args, **kwargs

/venvs/source/WrightTools/WrightTools/artists/_helpers.py:687: MatplotlibDeprecationWarning:
The set_clim function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use ScalarMappable.set_clim instead.
  cbar.set_clim(clim)

Two deprecation warnings appear on current matplotlib master.
Pretty easy to fix, though currently there is a regression that I may track down and PR before mpl is released causing a breakage (not just a warning) for the clim, as we pass set_clim(clim[0], clim[1])

This is fixed by calling set_clim(clim) (though the warning still appears for now, have not tried using the suggested alternative yet) Fix submitted upstream see matplotlib/matplotlib#13789 the function signature was incorrect.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0