Get the current pane/drawing area.
Integer_Type chips_get_pane()
Integer_Type chips_get_drawing_area()
Returns the number of the current pane/drawing area; the two
commands are identical. The numbering scheme of the panes is
described in "ahelp chips_split". Since there are no
parameters, the functions can be called without the trailing
"()".
chips> chips_split(2,3,4)
6
chips> chips_get_pane
4
Here we create 6 panes, arranged in a 2 by 3 grid, and
move to the fourth one. We then check that this
has happened with chips_get_pane().
() = chips_split(2,3,4);
variable pane = chips_get_pane;
print("Current pane is " + string(pane))
As the first example, but done in a S-Lang script.
Here the pane number is stored in a S-Lang variable
and output to the screen using the Varmm print() function.
- chips
-
chips_auto_redraw,
chips_clear,
chips_color_name,
chips_color_value,
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_yscale,
chips_set_zrange,
chips_set_zscale,
chips_split,
chips_version
|