Misc. Data

The data held in the Misc category of an IPlot Data Object is defined in dataset.h and is described below.

State

The number of the data set is not really used or needed but there to identify just in case. When the flag calcminmax is set to true then any call to PlotSetUp (which happens before every plot) will call the IPlot Data Set function FindMinMax which finds the maximum and minimum extents of the data, and stores them in the variables below. This happens before the first plot and any time the function ResetScale is called (after a scale change in 1D plots)

Sizes and Extents

The data_min and data_max variables hold the extents of the entire data set. At present these are calculated from the geometry data only! In the future, if a data set only has mesh information and lacks geometry information, then these extents will have to be computed from the mesh information (See Things that Need to be Done) When a full zoom out is done, these variables are used to set the transformation parameters so that the entire image will fit neatly into the plotting window.

The gridsize variables hold the value for the interval between the grid lines which can be superimposed over the image and the grid values which appear along the axes.

Labels

These variables hold the title and axis labels for the data set. Titles are originally set to the file name, and axis labels are originally set to X-Axis,Y-Axis - for the first data set - and for future data sets will be set to match the last data set. All are changed easily.

Plotting Parameters

The Plotting parameters have three states. When a value is set to 0, it means that that particular property should be visible, and has, in fact, just been plotted. A value of 1, on the other hand, means that a property should be visible but is not yet visible. Note: When the plotgeom flag is set from -1 to 1, all other flags that are set to 0 must be replotted since the geometry lies at the bottom and everything else is superimposed on it.

When plot1d is set to 1 or 0 all other flags must be set to -1.


IPlot Home Page Technical Doc's User's Guide
IPlot and its accompanying WWW pages were written by Gene McKenna
a member of Stanford University's famous TCAD Group