Plot.1dCommand

From Flooxs
Revision as of 18:13, 10 November 2008 by Danieljc (talk | contribs) (→‎Examples)
Jump to navigation Jump to search

Plot.1d

plot.1d - plot a one dimensional cross section

Synposis

plot.1d

[ x=<n> ][ y=<n> ][ z=<n> ]
[ boundary ] [ clear ]
[ max=<numeric list> ] [ min=<numeric list> ]
[ color = <s> ] [ symb = <s> ]
[ label=<s> ] [ log ] [ ylab =<s>]

Description

The plot.1d statement allows the user to plot cross sections vertically or horizontally through the device. The statement has options to provide for initialization of the graphics device and plotting of axis. The statement can optionally draw vertical lines whenever a material boundary is crossed.

x, y, z
These parameters specifies the constant values of a line to perform sectioning along in microns. In one dimension, these parameters are not necessary. In two dimensions, only one of x or y can be specified for a given device. Specifying x will produce a horizontal slice through the device and y will specify a vertical slice. An easy way to remember is that the cross section is taken at the constant value specified. For a three dimensional simulation, two of these three must be specified.
boundary
This parameter specifies that any material boundaries that are crossed should be drawn in as vertical lines on the plot. It defaults false.
clear
The clear parameter specifies whether the graphics screen should be cleared before the the graph is drawn. If true, the screen is cleared. It defaults true.
max
This command takes a list of numeric values which will be the ends of the x and y axis, respectively. The first argument is x and the second is the y value. A single value will always be interperted as the x value. The default is the maximum extent of the current structure.
min
This command takes a list of numeric values which will be the ends of the x and y axis, respectively. The first argument is x and the second is the y value. A single value will always be interperted as the x value. The default is the minimum extent of the current structure.
color
This parameter specifies the line color for the plot. It can be any color supported by the X11 hardware and named in the color data base.
symb
This parameter allows the user to specify a symbol type to be drawn on the cross sectional line. Each point is drawn with the specified symbol. Symb=0 means no symbol should be drawn. It defaults to no symbol. Whatever character is entered is placed at each data point on the plot.
label
This parameter allows the user to specify the name of the line in the legend box of the plot window. The default is the name of the current data set.
log
Specify that we want the plot to have a log scale axis
ylab
Change the default vertical axis label

Examples

plot.1d x.v=1.0 symb=1 clear 

This command will clear the screen, draw a set of axes, and draw the data along a horizontal cross section at x=1.0 um. Each point will be drawn with symbol 1.

plot.1d x.v=2.0 clear=f lab = Lateral

This command draws a horizontal cross section at x=2.0 um on the previous set of axis. The line is labeled Lateral in the legend.

Bugs and Missing Features

Use of this command and the [interface.html interface], [interp.html interpolate], and [BLTplot.html blt window commands] commands provides a fairly complete way to examine data in one dimension.

See Also

SliceCommand, SelectCommand