| 
 
Integer_Type chips_set_yscale(scale) 
      
	Sets the scale of the plot's y-axis.  
       Arguments for chips_set_yscale
          | scale | Numeric | 0, 1, "linear", "log", _chips->log, _chips->linear | logarithm is base 10 |  
	  When invoked with no argument, the function will reset the
	  scale to linear.
	 
        The function returns a 0 on success and -1 on failure.
       
	The current scale may be found with chips_get_yscale.
       
	
  chips> input=readfile("/data/chips/phas.fits")
  chips> curve x input.x y input.y
  chips> chips_set_yscale("log")    
  0
	
	A data file is read in and plotted, then the y-axis is changed
	to log scale.  Equivalent commands are:
	 
  chips> chips_set_yscale(0)
  chips> chips_set_yscale(_chips->log)
	 
	
  chips> spec=readfile("/data/threads/Chips/data1.pha")
  chips> curve x spec.channels y spec.counts                     
  chips> chips_set_yscale(0)
  Warning: negative and zero values ignored in log scale
  0
  chips> chips_set_yscale(_chips->linear)
  0
	
	First, the y-axis is set to logarithmic scale.  The second
	"chips_set_yscale" command changes it back to a linear scale;
	equivalent commands are:
	 
  chips> chips_set_yscale(1)
  chips> chips_set_yscale("linear")
  chips> chips_set_yscale()
	 
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_yrange,
chips_set_zrange,
chips_set_zscale,
chips_split,
chips_version
 |