Re: [Matplotlib-users] color in plot3d

2010-06-17 Thread Pablo Angulo
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

Re: [Matplotlib-users] color in plot3d

2010-06-16 Thread Pablo Angulo
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

Re: [Matplotlib-users] color in plot3d

2010-06-16 Thread Mike Alger
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

Re: [Matplotlib-users] color in plot3d

2010-06-14 Thread 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

[Matplotlib-users] color in plot3d

2010-06-11 Thread Pablo Angulo
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