surface command
*From:* Pablo Angulo [mailto:pablo.ang...@uam.es]
*Sent:* June-16-10 9:07 AM
*To:* Mike Alger
*Cc:* matplotlib-users@lists.sourceforge.net
*Subject:* Re: [Matplotlib-users] color in plot3d
El 15/06/10 01:22, Mike Alger escribió:
The way that color keyword
El 15/06/10 01:22, Mike Alger escribió:
The way that color keyword is set up, it is dedsigned to take a color
word or rgba tuple , (Reinier will know this better than me), however
if you want to just assign colors based on a colour map you can take
you color array and reshape the same way
and see if there is an improvement to be
made in the plot surface command
From: Pablo Angulo [mailto:pablo.ang...@uam.es]
Sent: June-16-10 9:07 AM
To: Mike Alger
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] color in plot3d
El 15/06/10 01:22, Mike Alger
][cs])
costmapout=np.array(costmapout)
surf.set_array(costmapout)
## do your show plot stuff here!!
Mike Alger
From: Pablo Angulo [mailto:pablo.ang...@uam.es]
Sent: June-11-10 7:04 AM
To: matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] color
Hello!
I wonder if there is a way to make 3d plots specifying arbitrary
colors, instead of having the color be a function of the height. I was
able to achieve this making minimal changes to the plot_surface method
of Axes3D, adding as an optional keyword argument a function *cfun*
which