I have a function ℝ² → ℝ², for example electrical charge and pressure across a surface. I would like to display this as a heatmap. So I need a mapping from ℝ² to colors (ℝ³) to convert the output to colors.
Matplotlib provides colormaps but as far as I understand they only represent a single dimensional value. Is there a standard way to display 2 channel data as heatmaps in matplotlib? The image can be processed outside/manually, but then it does not integrate well, for example it displays the RGB data where the cursor is hovering, not the data values.
Thanks!