Add a graph to layout window
1. add_graph_to_graph graph1 layout1 //only short name is accepted
2. add_graph_to_graph igname:=graph1 ogname:=layout1
Please refer to the page for additional option switches when accessing the x-function from script
Specifies the short name of the graph to be pasted.
Specifies the short name of layout window add onto.
This X-Function is invoked from the context menu on a layout window which pastes a selected graph as an EMF object on it.
When it is executed, the cursor becomes like , and you can select a region with the mouse to specify the size and position of the EMF object.
//After executing the following script, click in layout1 window or drag mouse to draw a rectangle in layout window to add graph1 to layout1 window
//only graph window and layout window short name is accepted.
add_graph_to_graph graph1 layout1;