Integer_Type chips_set_xscale(scale)
Sets the scale of the plot's x-axis.
Arguments for chips_set_xscale
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_xscale.
chips> input=readfile("/data/chips/phas.fits")
chips> curve x input.x y input.y
chips> chips_set_xscale("log")
0
A data file is read in and plotted, then the x-axis is changed
to log scale. Equivalent commands are:
chips> chips_set_xscale(0)
chips> chips_set_xscale(_chips->log)
chips> spec=readfile("/data/threads/Chips/data1.pha")
chips> curve x spec.channels y spec.counts
chips> chips_set_xscale(0)
Warning: negative and zero values ignored in log scale
0
chips> chips_set_xscale(_chips->linear)
0
First, the x-axis is set to logarithmic scale. The second
"chips_set_xscale" command changes it back to a linear scale;
equivalent commands are:
chips> chips_set_xscale(1)
chips> chips_set_xscale("linear")
chips> chips_set_xscale()
- 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_yrange,
chips_set_yscale,
chips_set_zrange,
chips_set_zscale,
chips_split,
chips_version
|