Re: 3d surface plot animation

Bruce Sherwood <[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Message-ID <CAFDG03jUcsM4=Qmqtsz5Hm9COVy6USVVHPt-LMVS9RqvERhgHw@mail.gmail.com>
Your program is too long and complex for me to comment on the speed
issues. Concerning color, I'm not sure exactly what your issue is. You
can calculate colors and then use them; for example you could do
something like mycolor = (1,1,k*z), where k*z is between 0 and 1, and
then set some object's color attribute to mycolor. Also note that the
faces object lets you specify the colors of all vertices individually.

A general comment about speed is that if you can structure a program
to use the parallelism of numpy arrays you can get large speedups in
the computations. Among the example programs that use this technique
are gas, stars, and toroid_drag. However, numpy can be rather hard to
use.

Bruce Sherwood

On Fri, Oct 14, 2011 at 2:22 AM, Poul Riis <Poul.Riis-pIBpe43/vk1knbxzx/[email protected]> wrote:
> Now it works! (please try my further developed example below).
> However, it is far too slow.
> Is there any possibility to speed it up?
> How can I add colors depending on the z-value?
>
> Poul Riis
>

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.