Trygve Magnus Ræder
Trygve Magnus Ræder
I'm not a regular contributor here, but there was demand for this functionality in my field so I will chime in. In my field there are numerous publications that use...
May I ask: when you think about bivariate colormaps do you think about something like the figure on the left, or something like the figure on the right?  Because...
~~@timhoffm 'superseded' was maybe a bad choice of word. This PR and #28454 will work together, but I _think_ there will be some conflicts if both this and #28454 are...
> Can you please try to summarize the mapping logic for multivariate and 2D colormaps. I cannot follow the architecture between the implementation details and mixing with ScalarMappable logic. ...
> 1. It is reasonable to abstact the step "normalized data channels -> color" in different Colormap classes. I'm inclined to have a similar abstraction for the normalization so that...
> T.b.d. maybe this can be slightly simplified nowadays I took a look, and the norm now seems to connect automatically, but you still need to manually connect the images...
@story645 The PR as it stands works like this: $multivariate:\underbrace{channel_1×channel_2}_{VectorMappabe} \underbrace{→ norm_1×norm_2} _{norm\ layer} \underbrace{→RGB×RGB →RGB} _{cmap\ layer}$ $bivariate: \underbrace{channel_1×channel_2} _{VectorMappable} \underbrace{→ norm_1×norm_2} _{norm\ layer} \underbrace{→ RGB} _{cmap\ layer}$ as...
> Re: 3. Multiple mappables with one colorbar: I'm referring to https://matplotlib.org/stable/gallery/images_contours_and_fields/multi_image.html. T.b.d. maybe this can be slightly simplified nowadays, but we still have a fundamental disconnect between the images...
@timhoffm > Does this help? yepp :) Functionally this is pretty close to what I discussed with @story645 and @ksunden. > We will continue to have a mixin that provides...
Thanks @timhoffm a `ScalarMappableShim` to provide backwards compatibility seems sensible. In your previous post I got the impression that `ColorableArtist` should inherit from `Artist`, i.e. ``` class ColorableArtist(martist.Artist): class _ImageBase(ColorableArtist,...