Suppose I have a 2D array Z
which represents the 'height' of a (rectangular) domain, and another 2D array T
which represents some other quantities (e.g. temperature) in the same spatial domain. I know how to plot the 3D surface plot of Z
using the plot_surface
as shown in the tutorial. However, the colourmap shows the quantity I'm plotting (i.e. the height Z
). How can I plot the 3D height map of Z
with the colour bar representing the quantity T
instead? Since I can already visualize the 3D surface of the height map without the colourbar, I want to reserve the colour display the values of T
instead.
Asked
Active
Viewed 32 times
1

Andras Deak -- Слава Україні
- 33,737
- 11
- 83
- 111

Physicist
- 2,848
- 8
- 33
- 62
-
1Similar questions exists already with adequate answers. Did you try anything yet? – ImportanceOfBeingErnest Nov 11 '19 at 23:37
-
MATLAB is not python. Matplotlib is not MATLAB. If you have a python question, don't tag it with MATLAB. – Andras Deak -- Слава Україні Nov 11 '19 at 23:57