How to force color matching to dynamic range more than concrete input for imshow in matplotlib

Suppose I want to make 2+ heatmaps (in the same or different figures), and the color matching ↔ will be the same among them.

By default, extreme values ​​in the color palette (e.g., inkjet) will be used for the dynamic range of each heatmap separately (i.e. each imshow call), and I would like to make the display be the same, i.e. use global dynamic range.

I think the equivalent operator is that I would like to specify an absolute match somehow, whereas the imshow behavior given the cmap object refers to the dynamic range of input.

+5
source share
2

, ?

, .

+4

, - , , Axesimage.properties()['clim'] , :

0

All Articles