I have a simple task that should have a simple solution, but I tried several days already. I try to be specific.
I am trying to build a surface using matplotlib mplot3d and plot_surface. When I draw the surface of the "z" dataset and try to scale the color map to a certain maximum value, I change the "vmax" property to this value. This works great.
When I try to build the surface of one dataset (z) and use the facial flowers of the second dataset (fc), this also works fine.
When I want to scale a color copy of facecolors, the vmax property is overridden by the values ββof facecolors. Therefore, Vmax has no effect (attempt 1). The lines also disappeared, but this is another problem.
Also, an attempt to change the values ββof the facecolor (fc) dataset did not have the desired effect (attempt2).
I am trying to get a figure with a scaled color palette (as shown in the figure below), but it scales to facecolors, not z-values.
Below is the code I have and the results look like this:
Does anyone know what I'm missing here? Any thoughts appreciated!
import pylab as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D plt.ion()
Niels source share