Integer_Type chips_get_yscale()
Gets the scale of the plot's y-axis. The function returns "1"
for linear and "0" for log. Non-existent drawing
areas are assumed to have a default scale of linear.
The current scale may be changed with chips_set_yscale.
chips> input=readfile("/data/chips/phas.fits")
chips> curve x input.x y input.y
chips> chips_get_yscale()
1
The dataset is read in and plotted with a linear y-axis, as
returned by the "chips_get_yscale" command.
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_get_yscale()
0
The y-axis is changed to log scale with the
"chips_set_yscale" command, then the change is confirmed.
Note the the first command returns "0" for success, while the
second returns "0" to indicate log scale.
- 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_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_yscale,
chips_set_zrange,
chips_set_zscale,
chips_split,
chips_version
|