next up previous contents index
Next: 3.1 Using the Metanet Up: Metanet User's Guide and Previous: 2.3 Plotting graphs

  
3. Metanet windows

Metanet windows  can be used to see the graphs and the networks. It is a powerful tool to create and modify graphs. You can have as many Metanet windows as you want at the same time. Each Metanet window is an Unix process: the communications between Scilab and the Metanet windows is made by using the communication toolbox called GeCI. NOTE that at the present time, Metanet windows only work under Unix environment with X Window.

By default, the size of Metanet windows is 1000 pixels by 1000 pixels. If you want to see big graphs, you have to change this values by using X Window ressources. Put the new values in the ressources Metanet.drawWidth and Metanet.drawHeight in a standard ressource file (for instance .Xdefaults in your home directory). For instance, if you want Metanet windows with a size of 2000 by 3000 pixels, puts the following lines in the ressource file:

Metanet.drawWidth: 2000
Metanet.drawHeight: 3000

An important point is that there is no link between the graph displayed in the Metanet window and the graphs loaded into Scilab. So, when you have created or modified a graph in the Metanet window, you have to save it as a graph file (see 2.2) and load it again in Scilab. Conversely, when you have modified a graph in Scilab, you have to display it again in the Metanet window by using the save_graph function (see 3.2). The philosophy is that computations are only made in Scilab and the Metanet window is only used to display, create or modify graphs. So, you can use Metanet toolbox without using Metanet windows.

Another way to see a graph is to plot it in a Scilab graphical window (see 2.3), but there is no possibility to modify the displayed graph.



 
next up previous contents index
Next: 3.1 Using the Metanet Up: Metanet User's Guide and Previous: 2.3 Plotting graphs
Scilab Group