Along these lines, it looks to me like plot_surface is not shading when I would
expect it to (maybe I just have the wrong expectations?)
I would expect the following to create a surface with colors from the colormap
but shading from a lightsource.
surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1,
cmap=cm.jet,shade=True)
However, axes3d.py requires facecolors to be set in order to generate
facecolors to shade...
mpl_toolkits/mplot3d/axes3d.py
line 1378-1380 mpl v1.1.0
# Shade the data
if shade and cmap is not None and fcolors is not None:
fcolors = self._shade_colors_lightsource(Z, cmap, lightsource)
should the if statement be:
if shade and cmap is not None and fcolors is None:
I'm not sure if this will screw anything else up, but it makes a lot more sense
to me as an API. Maybe there are other reasons to require facecolors to be set?
Ethan
On Jan 9, 2012, at 10:28 AM, Zoltán Vörös wrote:
>
>
> On 01/09/2012 05:46 PM, Benjamin Root wrote:
>> When we said that GTK is not supported, (1) is not an official
>> decision, I think, (2) we mean the pure GTK *backend*. We fully
>> support the GTKAgg backend, which is superior to the GTK backend in
>> every way. Please try v1.1.0 before continuing. There were many
>> important changes to mplot3d between v1.0.1 and v1.1.0.
> Indeed, that was the case. The surface plot works as advertised now.
> Thanks for helping out with this! Once I have a viable code for
> phonging, I will send it to you in a personal mail.
> Cheers,
> Zoltán
>
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> _______________________________________________
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users