functions in graph.i - l

 
legend

    legend=   plotting keyword  


  sets the legend for a plot.  The default legend is a concatentation  
  of the strings used in the original plotting command (plg, plm, etc.),  
  except for the plt command, which has no default legend.  
  Legends are never plotted to the X window; use the plq command to  
  see them interactively.  Legends will appear in hardcopy output  
  unless they have been explicitly turned off.  
PLOTTING COMMANDS: plg, plm, plc, plv, plf, pli, plt, pldj  
  Keyword,  defined at i0/graph.i   line 927  

SEE ALSO: hide  
 
 
 

limits

    limits  
 or limits, xmin, xmax, ymin, ymax,  
    square=0/1, nice=0/1, restrict=0/1  
 or old_limits= limits()  
 or limits, old_limits  


In the first form, restores all four plot limits to extreme values.  
In the second form, sets the plot limits in the current coordinate  
system to XMIN, XMAX, YMIN, YMAX, which may be nil or omitted to  
leave the corresponding limit unchanged, a number to fix the  
corresponding limit to a specified value, or the string "e" to  
make the corresponding limit take on the extreme value of the  
currently displayed data.  
If present, the square keyword determines whether limits marked  
as extreme values will be adjusted to force the x and y scales  
to be equal (square=1) or not (square=0, the default).  
If present, the nice keyword determines whether limits will be  
adjusted to nice values (nice=1) or not (nice=0, the default).  
There is a subtlety in the meaning of "extreme value" when one  
or both of the limits on the OPPOSITE axis have fixed values --  
does the "extreme value" of the data include points which  
will not be plotted because their other coordinate lies outside  
the fixed limit on the opposite axis (restrict=0, the default),  
or not (restrict=1)?  
If called as a function, limits returns an array of 5 doubles;  
OLD_LIMITS(1:4) are the current xmin, xmax, ymin, and ymax,  
and int(OLD_LIMITS(5)) is a set of flags indicating extreme  
values and the square, nice, restrict, and log flags.  
In the fourth form, OLD_LIMITS is as returned by a previous  
limits call, to restore the limits to a previous state.  
In an X window, the limits may also be adjusted interactively  
with the mouse.  Drag left to zoom in and pan (click left to zoom  
in on a point without moving it), drag middle to pan, and click  
(and drag) right to zoom out (and pan).  If you click just above  
or below the plot, these operations will be restricted to the  
x-axis; if you click just to the left or right, the operations  
are restricted to the y-axis.  A ctrl-left click, drag, and  
release will expand the box you dragged over to fill the plot  
(other popular software zooms with this paradigm).  If the  
rubber band box is not visible with ctrl-left zooming, try  
ctrl-middle or ctrl-right for alternate XOR masks.  Such  
mouse-set limits are equivalent to a limits command specifying  
all four limits EXCEPT that the unzoom command can revert to  
the limits before a series of mouse zooms and pans.  
Holding the shift key and pressing the left mouse button is  
equivalent to pressing the middle mouse button.  Similarly,  
pressing meta-left is equivalent to the right button.  This  
permits access to the middle and right button functions on  
machines (e.g.- most laptops) with two button or one button  
mice.  
The limits you set using the limits or range functions carry over  
to the next plot -- that is, an fma operation does NOT reset the  
limits to extreme values.  
Builtin function, documented at i0/graph.i   line 771  

SEE ALSO: plsys,   range,   logxy,   zoom_factor,   unzoom,   plg,   viewport  
 
 
 

logxy

    logxy, xflag, yflag  


sets the linear/log axis scaling flags for the current coordinate  
system.  XFLAG and YFLAG may be nil or omitted to leave the  
corresponding axis scaling unchanged, 0 to select linear scaling,  
or 1 to select log scaling.  
Builtin function, documented at i0/graph.i   line 848  

SEE ALSO: plsys,   limits,   range,   plg,   gridxy