NsPlot is a Java applet which allows users to analyze simulation data dumped from NetSimQ. It provides facilities for visual display of simulation results as x-y plots, three dimensional plots, bar plots and/or pie plots. The current implementation status of NsPlot Version 1.0 is shown below:
| 3D Plot | Supported |
| Bar Plot | Supported |
| Pie Plot | coming soon |
Table 1. Implementation status of NsPlot Version 1.0.
NsPlot is a Java based application, but with little modification, one can change it to a Java applet to be incorporated into a webpage. The schematic architecture is shown below. The control interface manipulates the multiple data sets and displays them in the various modes specified by users. The 2D and 3D plots are the display panel for data sets. In addition, data sets are also shown in the control panel for 2-D plots. In short, data sets are documents, while the 2D/3D plot panels and the control panel are all different views of these data sets.

Figure 1. Schematic architecture of NsPlot
Figure 2. A NsPlot Snapshot.
Figure 3. The NsPlot Menu.
NsPlot provides a user-friendly interface for data manipulation (adding/deleting/configuring data sets). It has five menu items, each one of which in turn has several sub-menus. The menu items are:

Figure 4. The NsPlot File Sub-menu.
- Open a plot in a pop-up window - opens a plot in another pop-up window.
- Open a plot - opens a 2-D plot in the plot panel.
- Open a 3D plot - opens a 3-D plot in the plot panel.
- Save - save changes in the current file.
- Save as - save changes in a new file.

Figure 5. The NsPlot Add Sub-menu.
- Add a dataset- imports another dataset from a specified file.

Figure 6. The NsPlot Delete Sub-menu.
- Del a dataset- deletes a selected dataset.

Figure 7. The NsPlot Configuration Sub-menu.
- Global options - sets up the plot options for the plot panel.

Figure 8. The NsPlot Config Panel

Figure 9. The NsPlot Help Sub-menu.
4.2 Plot Panel


Figure 10. The plot panel, and a pop-up window for a data set.
The functions currently supported in the 2-D plot panel include

Figure 11. The NsPlot 3D plot panel.
The functions currently supported in the 3-D plot panel include
4.3 Control Panel
In the control panel, one can change the options for the display mode of a graph, and list all the data sets displayed in the current plot. Currently it works only for 2-D plots

Figure 12. The NsPlot Control Panel
NsPlot fully supports the Xgraph format. In what follows, we give a brief introduction:
TitleText: specifies the title of the plot.
Xrange: xmin, xmax gives the range of the x coordination.
Yrange: ymin, ymax gives the range of the y coordination.
Grid on/off: decides whether or not the grid mode is used.
Xlabel: specifies the x label shown in the graph.
Ylabel: specifies the y label shown in the graph.
Marks: specifies the marker style.
NumSets: specifies the total number of datasets.
Color on/off: specifies whether to display a color graph or a black-and-white one.
A sample file is given below:
TitleText: My Plot
XRange: 0,4
YRange: -4,4
Grid: off
XLabel: X Axis
YLabel: Y Axis
Marks: various
NumSets: 11
Color: off
DataSet: dot
0,-4
1,-3
2,-2
3,-1
4, 0
DataSet: cross
0,-3.5
1,-2.5
2,-1.5
3,-0.5
4, 0.5
Lines: off
DataSet: square
0,-3
1,-2
2,-1
3,0
4,1
DataSet: triangle
0,-2.5
1,-1.5
2,-0.5
3, 0.5
4, 1.5
DataSet: diamond
0,-2
1,-1
2, 0
3,1
4,2
The command line version is compiled to a .exe file under Windows. Users may also invoke it in a Java interpreter. The help menu can be displayed by
NsPlot -help
All the available options will then be listed. Then, NsPlot can be invoked with option(s) as follows.
NsPlot [options] filename
NsPlot Version 1.0 is under development, and is known to have the following limitation:
NsPlot was tested on the following configurations:
Last modified: 18 March 1999