| 
 
      Set the upper and/or lower y-axis limits of the plot
     
Integer_Type chips_set_yrange(range) 
      
	Sets the limits of the plot's y-axis.  
       Arguments for chips_set_yrange
          | range | Numeric | a pair of numeric values, "auto", or "*" (see below) | auto |  
	If a pair of values is used for the "range", it may either be
	two comma-separated values (minimum and maximum), or a single
	array whose first two elements will be used as minimum and
	maximum.  The "*" character indicates no change in the current
	limit, while "auto" allows the underlying plotting package to
	select the limit value; both of these options must be quoted
	to work properly.
       
        ChIPS converts double-precision numbers to
        floating-point values before plotting them, which can cause
        problems for values that are either too large or too small.
        The allowed range is approximately 1e-38 to 3e38 (for both
        positive and negative values). 
       
        The function returns a 0 on success and -1 on failure.
       
	The current limits may be found with chips_get_yrange.
       
	
  chips> input=readfile("/data/chips/phas.fits")
  chips> curve x input.x y input.y
  chips> chips_set_yrange(-10,150)
  0
	
	A data file is read in and plotted, then the minimum and
	maximum values of the y-axis are changed.
	 
	
  chips> spec=readfile("/data/threads/Chips/data1.pha")
  chips> curve x spec.channels y spec.counts                     
  chips> chips_set_yrange(10,"*")
  0
  chips> chips_set_yrange("auto","auto")
  0
	
	First, the lower limit of the plot is changed to 10, while the
	original upper limit is retained.  The second
	"chips_set_yrange" command has the plotting package determine
	the best limits for the plot.
	 
chips
chips_auto_redraw,
chips_clear,
chips_color_name,
chips_color_value,
chips_get_pane,
chips_get_xrange,
chips_get_xscale,
chips_get_yrange,
chips_get_yscale,
chips_get_zrange,
chips_get_zscale,
chips_label,
chips_line,
chips_pickpoints,
chips_redraw,
chips_set_pane,
chips_set_xrange,
chips_set_xscale,
chips_set_yscale,
chips_set_zrange,
chips_set_zscale,
chips_split,
chips_version
 |