Last modified: December 2013

URL: https://cxc.cfa.harvard.edu/chips/ahelp/current_plot.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.11 ChIPS v1

current_plot

Context: plots

Synopsis

Set the specified plot as current.

Syntax

current_plot(id)

Description

The function arguments.

Argument Description
id A ChipsId structure identifying the item, or a string containing the name of the object.

The current_plot command sets the plot indicated by the argument as the current plot; see "ahelp currency" for general information on currency.

Use the info_current command to retrieve a list of all the current items in the ChIPS session, as shown below.


Examples

Example 1

chips> id = ChipsId()
chips> add_plot(.1, .5, .5, .9, "id=obs459")
chips> add_plot(.5, .1, .9, .5, "id=obs3456")
chips> id.plot = "obs459"
chips> current_plot(id)
chips> info_current()

Two plots are created; the second plot is current after it is created. The id.plot command sets the plot value of the ChipsId structure to the first plot, then the current_plot command makes that plot current.

The output of info_current for this session is:

Window [win1]
  Frame [frm1]
    Plot [obs459]
   Coord Sys [Plot Normalized]

Example 2

chips> add_plot("id=main")
chips> add_plot(.15, .15, .4, .4)
chips> current_plot("main")

Two plots are created. After the second plot is created, it is current. The current_plot command then sets the first plot as the current plot.

Example 3

chips> add_plot("id=main")
chips> add_plot(0.6, 0.6, 0.8, 0.8)
chips> current_plot("all")

Two plots are created. After the second plot is created, it is current. The current_plot command then makes all plots current.


Bugs

See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.

See Also

concepts
chipsid, currency
limits
get_plot_range
plots
add_plot, adjust_grid_gaps, adjust_grid_xrelsize, adjust_grid_xrelsizes, adjust_grid_yrelsize, adjust_grid_yrelsizes, clear_plot, delete_plot, display_plot, get_plot, grid_objects, hide_plot, move_plot, reposition_plot, set_data_aspect_ratio, set_plot, set_plot_aspect_ratio, split, strip_chart, swap_object_positions