|
From: Zoltán V. <zv...@gm...> - 2012-01-09 16:41:29
|
On 01/09/2012 05:30 PM, Benjamin Root wrote:
> The problem is that the faces themselves are transparent. But if I set
> shade to False, it becomes solid, so that must be the solution.
>
>
>
> What version of mpl are you using? For me (on master) I never get
> transparent faces.
I have 1.0.1 that comes with ubuntu. I was considering installing 1.1,
but then I saw that the gtk backend is not supported, so I decided
against it.
By the way, here is an example of the transparent faces (I think it
won't show on the mailing list). I can definitely see through the
surface. The code I used is
for y in range(ylen):
for x in range(xlen):
colors[x, y] = (1, 0.0, 1, 1.)
surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, facecolors=colors,
linewidth=0.1, antialiased=False, shade=True)
|