The gdots feature is a horrible kludge, and I'm not too surprised that
the performance is very poor. The problem is that I need to plot
something circular or square, not elliptical or rectangular, in a window
that typically has very different x and y scale factors. In the absence
of an appropriate Visual object, I'm plotting a letter "o". This has
many disadvantages, including (probably) great slowness. What is needed
is an option on the sphere or cylinder object that says "here is the
radius in x, make the object look circular on the screen".
Bruce Sherwood
Andrew Dougherty wrote:
> I'm running into performance and memory problems with gdots() under Linux.
> Specifically, the following program:
>
> from visual.graph import *
> gdisplay()
> funct = gcurve()
> for t in arange(0, 100, .1):
> funct.plot( pos=(t, cos(t)))
>
> completes in about 6 seconds and uses 13 Meg of memory (according to top), but
> the same program with gdots() instead of gcurve() takes about 135 seconds
> and consumes about 96 Megs of memory!
>
> Does anyone have any idea what's up?
>
> Thanks,
>
|