Scilab function

show_graph - displays a graph

Calling Sequence

nw = show_graph(g,[smode,scale])
nw = show_graph(g,[scale,winsize])

Parameters

Description

show_graph displays the graph g in the current edit_graph window. If there is no current edit_graph window, a edit_graph window is created. The return value nw is the number of the edit_graph window where the graph is displayed.

If the optional argument smode is equal to the string 'rep' or is not given and if there is already a graph displayed in the current edit_graph window, the new graph is displayed instead.

If the optional argument smode is equal to the string 'new', a new edit_graph window is created. In this case, if the optional argument winsize is given as a row vector [width height], it is the size in pixels of edit_graph window. The default is [600,400].

The optional argument scale is the value of the scale factor when drawing the graph. The default value is 1.

Examples

See Also