From: Hazen Babcock <hbabcock@ma...>  20080120 00:37:40

On Jan 19, 2008, at 6:00 PM, Oliver Bandel wrote: > Zitat von Oliver Bandel <oliver@...>: > > [...] >> >> But how do I set up the environment, and which plotfunctions to use? >> >> > [...] > > OK, I found something in the documentation and the examplecode. > > When I use plenv() to set up the 2D grafics and then > use pklw3d() and plbox3() I have the 3Dgraphics > activated, but I have the 3D axes as well as a 2D axes > in the picture. > When I throw out plenv() I have a blank page, even when using plvpor() > and plwind(). I usually start from something like example 8 or example 28. Then fiddle around, more or less by trial and error until the plot looks right. Basically you need the following commands (in this order): (1)plvpor()  This sets up how much of the window is to be used for drawing the plot (range 0.0  1.0), i.e. the viewport. For example plvpor(0.1,0.9,0.1,0.9) means the graph will be drawn between 10% of the way across the window and 90% of the way across in both x and y. (2)plwind()  This sets up the coordinates of the graph inside the viewport. For example plwind(1.0, 1.0, 0.9, 1.1) means that a point at (1.0, 0.9) will be drawn in the lower left hand corner of the viewport. You adjust this range for 3D plots to move the plot up and down (or left and right) in the window. Points in 3D space are mapped using the x,y and z ranges and the two view angles to 2D space and are then drawn. (3)plw3d()  This sets up the coordinates for the 3D graph itself. You can use this to set the x,y and z ranges as well as the viewing angle but this will not change where the graph is drawn on the screen nor the size of the graph. It tells PLplot how to convert from a 3D coordinate to the 2D coordinate space of plwind(). (3)plbox3()  This will draw the axises and the labels. It has good defaults, but if you want more control of the labels then you can use plmtex3 to do your own custom labeling. (4)some drawing commands. It sounded like you wanted to draw lines so you might look at plline3(). Hazen 