Skip to content

2D Normalization & Colormapping for ScalerMappables#8738

Closed
patniharshit wants to merge 35 commits intomatplotlib:mainfrom
patniharshit:norm2d
Closed

2D Normalization & Colormapping for ScalerMappables#8738
patniharshit wants to merge 35 commits intomatplotlib:mainfrom
patniharshit:norm2d

Conversation

@patniharshit
Copy link
Copy Markdown
Contributor

@patniharshit patniharshit commented Jun 9, 2017

PR Summary

This PR is in referance to GSoC project '2D colormaps'.
(Project proposal is here)

  • The BivariateColormap class subclasses Colormap class. After generation it is flattened to 1d look up table.

  • The implementation of BivariateColormap is not perfect yet and just something has been generated to show proof of concept.

  • The bivariate data is identified by ndim == 3 and if an instance of either Bivariate Colormap or Norm has been passed in. This data is normalized and mapped to univariate integer index so as to directly index flattened BivariateColormap.

  • Plotting some air temperature and surface pressure data:
    bivariate

Feel free to review.

@story645 @tacaswell

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/whats_new.rst if major new feature
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

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

Labels

status: inactive Marked by the “Stale” Github Action status: needs rebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants