Cycles forward and backward through the frames in a window.
next_frame() next_frame(id) prev_frame() prev_frame(id)
The function arguments.
|id||A ChipsId structure identifying the item.|
The next_frame and prev_frame commands cycle forward and backward through the frames in a window. These commands only work when the display mode is set to "single"; see "ahelp view_single_frame".
The frames are displayed in the order they were created by default. The order of frames can be changed by the arrange_frames command.
chips> (x1, y1) = ([1,2,4,6], [2,4.4,2.8,3]) chips> (x2, y2) = ([10,20,30,40,50,60,70,80], [23,25,27,25,22,19,18,21]) chips> (x3, y3) = ([0.5,2,4,6], [1,4,4,2.5]) chips> add_frame(0.1, 0.1, 0.5, 0.5) chips> add_curve(x1, y1, "line.color=green symbol.color=yellow") chips> add_frame(0.5, 0.5, 0.9, 0.9) chips> add_curve(x2, y2, "line.color=coral") chips> add_frame(0.1, 0.5, 0.5, 0.9) chips> add_curve(x3, y3, "line.color=blue") chips> view_single_frame() chips> next_frame() chips> next_frame() chips> prev_frame() chips> prev_frame() chips> view_placed_frame()
Create a window containg three frames with a curve in each of them. The frame mode is set to single frame for the current window; the last frame created is displayed in the window. The next_frame and prev_frame commands are used to cycle through the frames. Finally, the frame mode is set to "placed", showing the frames in their original locations.
chips> id = ChipsId() chips> id.window = "win2" chips> next_frame(id)
A ChipsId object may be used to set the display mode of a window other than the current one. In this example, the next frame of "win2" is displayed.
See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.