|AHELP for CIAO 4.5 ChIPS v1||
Repositions the plot within the frame.
reposition_plot([id], x1, y1, x2, y2)
- id - an optional ChipsId structure containing values to modify the currency state for the command or a string id to modify the specified window or plot.
- x1, y1, x2, y2 - the location of the lower left (x1,y1) and upper right (x2,y2) corners of the plot. The coordinates are in Frame Normalized Coordinates.
The reposition_plot command is used to modify the location of the plot within the frame. The location is specifed as lower left (x1,y2) and upper right (x2,y2) values. The values are in Frame Normalized Coordinates with (0,0,1,1) representing the entire frame.
Repositioning the plot changes the margins. They become:
- left margin = x1
- bottom margin = y1
- right margin = 1-x2
- top margin = 1-y2
Repositioning the plot may cause the aspect ratio to change. Objects in the plot are adjusted accordingly.
If reposition_plot is called on a plot which was hidden by a grid_objects ("ahelp grid_objects") or split ("ahelp split") command, the plot will be moved to the specified location and will be made visible.
This is different than the move_plot command, which cannot change the aspect ratio of the plot. Refer to "ahelp move_plot" for more information.
chips> add_plot() chips> reposition_plot(.2,.3,.7,.8)
Add a plot using the default plot margins. Reposition the plot to the area between (.2,.3) and (.7,.8).
chips> add_plot('id=original') chips> add_curve('sinwave.dat') chips> grid_objects(2,2,.05,.25,2) chips> current_plot('original') chips> reposition_plot(.25,.42,.80,.62)
Create a plot and add a curve to it. Use the grid_objects command to create a grid of four new plots, hiding the existing plot. Set the original plot to current and move it to the center of the gridded plots.
See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.
- add_plot, adjust_grid_gaps, adjust_grid_xrelsize, adjust_grid_xrelsizes, adjust_grid_yrelsize, adjust_grid_yrelsizes, clear_plot, current_plot, delete_plot, display_plot, get_plot, grid_objects, hide_plot, move_plot, set_data_aspect_ratio, set_plot, set_plot_aspect_ratio, split, strip_chart, swap_object_positions