Plotting Data


The previous section on Setting up Plot Types shows the preparation stage of creating plots. In this section, we describe the steps for generating plots and the contents in the plots.

Generating Plots

You can plot the selected data by any one of the following methods:

Selected data will be plotted in a Plot Results Dialog. In the current version of SansGUI, you can have one interactive Plot Results Dialog per Project Model.

Dynamic Charting

Plotting results is not limited to the end of a simulation run. When there are logged attributes, and some of them are selected for plotting, the Plot Results button is activated. You can click on it before a simulation run, during the simulation run, when the simulation is paused, or after the simulation is ended. When the Plot Results Dialog is displayed, SansGUI will update the plot when there are new data coming out from the simulator. Therefore, you need to decide whether you would leave the Plot Results Dialog opened or closed during a simulation run for performance reasons. Other notes regarding dynamic charting follow:

Plot Results Dialog

The Plot Results dialog is a pop-up window created for plotting the results. It contains the following elements initially:

The Plot Results dialog can be resized, maximized, or minimized just as others in the Windows environment. The plot will be resized according to the enclosing window size. Enlarging the dialog will increase the legibility of the plot. You can close the dialog by using the Cancel button (marked with an x at the upper right corner of the window) or select Close from the pull-down menu, obtained by clicking on the SansGUI icon at the upper left corner of the dialog.

Zooming into Plots

You can zoom into a rectangular portion of a plot to display a subset of the data. To do so, click on one corner of the desired rectangle and, while without releasing the mouse button, drag the bounding box to the other corner as you needed. Releasing the mouse button will cause the plot to be refreshed with the selected area being redrawn to fill the whole plot. Because the number of data points have been reduced, there is a scroll bar at the bottom of the dialog for you to scroll through the data set. You can perform multiple zoom-in operations if you wish.

When you need to reset the chart to the original view, simply right click on the chart and select Undo Zoom from the context menu.

Printing Plots

The data plot can be printed out to a printer by using the Export Dialog. The Export Dialog can be obtained from the context menu of the Plot Results dialog. Inside the Export Dialog, select MetaFile as the Export format and Printer for the Export Destination. Click on the Print... button to send the plot to the designated printer.

Exporting Plots

From the Export Dialog, you can export the plot to the Windows clipboard in the metafile or bitmap format, or a separate file in the metafile (WMF), bitmap (BMP), or JPEG (JPG) format. You can also export plotting data in the text format to the Windows clipboard or a separate file. Select the format, the destination, and the size as needed and click on the Export button to export it.

The next section Customizing Plots describes how to change the properties of the plot to suit your needs.

 



C:\FH_Suite\htmlgifs\home.gif Setting up Plot Types Customizing Plots

SansGUI Modeling and Simulation Environment Version 1.2

Copyright 2000-2003 ProtoDesign, Inc. All rights reserved.

http://protodesign-inc.com