

This is placed in the string argument of the function, at the beginning and the end of the string. In order to input Latex instructions, for any of the Scilab plot related functions, the user has to use the dollar $ sign. Scilab allows the usage of Latex formatted text, in the plot related functions, such as: xlabel(), ylabel(), title(), legend() and xstring(). Ha._background = 5 Īfter performing all the above changes, we will end up with the following graphical window.Latex makes possible to write equations in a mathematical format, by using all the symbols and characters specific to mathematics language. Now we have access to all the graphical properties of the line plot.įor our example we are going to change the thickness of the line, add marks on the line and change the mark style, size, foreground and background colors. Handle of type "Polyline" with properties: To access the Polyline, we have to go one level deeper. Handle of type "Compound" with properties:Įntering ha.children at the Scilab console will output the Compound property. To access them we need to use the structure data of the ha graphic handle variable. The last properties to modify are the line properties. Also the children of the Axes handle is the Compound.įor our example we are going to change the grid style, grid color, font size and font color for the axes: ha.grid_style = To display the axes properties enter the ha variable at the Scilab console:Īs you can see, there are a lot more properties to set at the axes level. directly from the ha graphic handle variableįor our example we will use the ha variable.from figure handle variable, as a structure: hf.children.We can access the axes properties in two ways: The next changes are going to be performed on the axis handle. 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.
