The SetDrawEnv operation sets properties of the drawing environment.
If one or more draw objects are selected in the top window then the SetDrawEnv command will apply only to those objects.
If no objects are selected and if the keyword save is not used then the command applies only to the next object drawn.
If no objects are selected and if the keyword "save" is used then the command sets the environment for all following objects.
Each draw layer has its own draw environment settings.
...
xcoord=abs X coordinates are absolute window coordinates. The unit of measurement is pixels if the window is a panel, otherwise they are points. xcoord=abs is the default for all windows except graphs where the default is xcoord=prel. The left edge of the window (or of the printable area in a layout) is where x=0.
xcoord=rel X coordinates are relative window coordinates. x=0 is at the left edge of the window; x=1 is at the right edge.
xcoord=prel X coordinates are relative plot rectangle coordinates (graphs only). x=0 is at the left edge of the rectangle; x=1 is at the right edge of the rectangle. This coordinate system ideal for objects that should maintain their size and location relative to the axes, and is the default for graphs.
xcoord=axisName X coordinates are in terms of the named axis (graphs only).
...
[same for ycoord]
Did you specify a layer before the drawline command? E.g.
DrawLine 10,50,500,50
HJ
September 4, 2017 at 03:08 pm - Permalink
I didn't specify a layer.
I did similar to the one in your reply which is
drawline[/W='windowname'] 0,9,1,9
but no line is drawn.........
September 5, 2017 at 06:06 am - Permalink
September 5, 2017 at 07:02 am - Permalink
ah, so the x0, x1, y0,y1 value there are pixel but not the value on the x axis or y axis?
September 5, 2017 at 12:43 pm - Permalink
http://www.igorexchange.com/node/3171
maybe that will help get you started.
September 5, 2017 at 02:10 pm - Permalink
September 5, 2017 at 02:48 pm - Permalink
thank you. but I don't know how to read this post....
September 6, 2017 at 07:19 am - Permalink
thank you. get it.
September 6, 2017 at 07:20 am - Permalink
The layer does not affect the coordinate system.
You may be thinking of panels, where the only options for coordinates are pixels or relative.
In graphs, the coordinates can also be relative, plot relative, or axis-coordinates.
Take a closer look at the SetDrawEnv command's xcoord and ycoord options.
Here's an extract of the Igor 6 documentation (I'm guessing pangeng is using Igor 6):
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
September 6, 2017 at 12:54 pm - Permalink