

hf.figure_name = 'Plot of sin(x) function' The last change we are going to do on the figure handle is to set a figure name. Make sure you enter the window size as an array. Now, let’s change the size of the graphic window. Make sure you enter the same data type (string, scalar, array, etc.) when setting properties. To do this we’ll call the graphical property and assign the desired value. The first change we are going to do is to hide the toolbar, menubar and infobar. The graphical handle variables hf and ha are structures so they can be accessed using the.

All the figure properties can be read and modified. As expected it is Axes, the same we’ve seen in the Figure Editor above. Once you close it, the graphic handle variables are no longer available in the Scilab console.įirst thing to notice is the children property. Be aware that the graphic handle properties are available as long as the graphical window is open. To do this just display the hf variable in the Scilab console. hf = gcf() įirst let’s have a look to what figure graphical properties we have access.

To do this, we need to run the get current figure function gcf() and get current axes function gca() and store the parameters in the graphical handle variables hf and ha. This method is not very efficient since all settings have to be repeated for every new graphical window.Ī more convenient way is to store all the graphics handle for both Figure and Axes in Scilab variables. We can format our graphical window easily with the Figure Editor because we have access to all the parameters. This latest contains all the graphical properties related to the line plot. In the same time, the Axes graphical handle has children, the Compound which has children the Polyline. By clicking on it a new window will pop-up with all the properties related to the axes. The Figure graphical handle has children, the Axes. By clicking on each of the object properties, we have access to all the parameters of the figure. It has three Object Properties: Style, Mode and Colormap. The properties of the graphical window are displayed hierarchically, in the Object Browser.
