On Mon, May 25, 2009 at 1:03 AM, Robert Cimrman <cimrm...@ntc.zcu.cz> wrote:
> Ondrej Certik wrote:
>>
>> On Fri, May 22, 2009 at 3:37 PM, Ondrej Certik <ond...@certik.cz> wrote:
>>>
>>> Thanks a lot John. I tried that and it does what I want. I just need
>>> to convert and probably average my 3 different values at the 3
>>> vertices of the triangle and color the triangle with that color. When
>>> I get it working, I'll send you a picture. :)
>>
>> Ok, I made a progress, it seems it's working. Script and picture
>> attached. You can compare to the mayavi plot above, it's almost
>> identical now. It took my some time playing with different parameters
>> of mpl to get here and I think it looks quite good. Still one can see
>> the artefacts though as John predicted, due to mpl not interpolating
>> the triangles.
>
> Nice!
>
> Just to prod you a bit: If you want to get rid of the hard mayavi dependence
> of femhub for 3D plots too, you could hack a (perspective/whatever)
> projection of 3D surface to 2D, remove invisible faces (normal points
> backwards) and plot the rest by the painter's algorithm (far faces first).

Well, I spent one afternoon playing with cairo, trying to implement
the triangle interpolation and the result was slower than matplotlib.
So gave up and I'll just use what can be done with mpl currently.

As to mayavi, I'd rather make it easier to install. The only tough
dependency is VTK, that takes lots of time to build, we already got
rid of all the others, so that's good.

Ondrej

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to