From: Bruce S. <bas...@un...> - 2002-08-11 18:26:53
|
There are no pixel-oriented options in VPython. The only thing you could do to paint a dot-oriented picture would be to use tiny boxes (or better, faces) that tile the space. The gdots option on the graph plot is a kludge which uses the letter "o" from a font (and as a result doesn't work properly on all platforms). The reason for this kludge is the need for plotting a small circle on a graph whose x and y axes may differ enormously (so that a ring object for example would display as an ellipse). There is no formal description of VPython routines, but the online reference manual does attempt to list all attributes of VPython objects. An exception is the graphing routine, which probably should list all of the attributes of a graph object, since occasionally it is useful to refer directly to some of the VPython objects that graph.py uses. You might like to just look at graph.py to see what's there. However, this isn't a useful place to find something for pixel plotting. Bruce Sherwood ----- Original Message ----- From: "Gregor Lingl" <gl...@ao...> To: "vpusers" <vis...@li...> Cc: <mi...@co...> Sent: Sunday, August 11, 2002 2:07 PM Subject: [Visualpython-users] pixel plotting > I've forwarded this message of LANEY MILLS originally sent > to tu...@py.... > Laney, if you are using vpython heavily, have a look at this list! > > vis...@li... > > The vpython library has wonderful plotting routines. One of them is gdots. > Gdots plots points on a graph. Although one can control the color of the > dots, one apparently cannot control the size of the dots. > > Suppose I wanted to write Python program to create the Mandelbrot set, > which has hundreds of thousands of dots. One needs to plot individual > pixels. > > Here are my two questions then: > > Is there a formal description of the various vpython routines? There is a > wonderful tutor, but no formal description with list all the attributes > ascribable to gdots. > > If gdots can't be made to plot individuals at a given (x,y) point, is there > some other way to do it? > > Thanks > > Laney Mills |