Manuals >User's Guide >Printing and Plotting Print version of this Book (PDF file) |
![]() ![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Creating an IC-CAP PlotThis section contains procedures for definition and creation of graphic displays and textual reports. The MOSFET model supplied with IC-CAP, nmos2, contains a variety of plotted data sets and is used as the example in this chapter. A plot is a graphical representation of data that gives a quick view of measured and simulated data, making it easier to spot any differences between the two. Using IC-CAP's plot analysis features, you can identify a data point or slope of a curve easily. If you need to get raw data in the form of numbers rather than a graph, you can view such data in a list form that can be sent to a printer. The general procedure for creating a plot is:
The term data set means either Input, Output, or Transform, as used in Chapter 11, "Creating and Running Macros."
Because the print methods vary significantly between UNIX and the PC, this chapter describes printing from these platforms separately. See the appropriate section for your platform:
Adding a New PlotThe first step in creating a plot is to add a plot.
Defining a Plot for Specific DataThe following 8 tables list definitions for plot data types. Certain plot characteristics can be set with system variables. When a variable applies to a specific plot type, the variable is listed in the table for that type. Variables that apply to any plot are listed in Table 46.
A histogram depicts either the frequency or the relative frequency of data distribution. Typically a histogram is used to identify both the ranges around which most of the data converges and the outliers of the data set. In a histogram, the X-axis displays the value ranges while the Y-axis plots the frequency or relative frequency for each range. A histogram is used for the visualization of data for a single variable.
A cumulative density plot depicts either the cumulative frequency or the cumulative relative frequency of data distribution. Typically a cumulative density plot is used to track variations between contemporaneous observations by highlighting changes in mean levels. In a cumulative density plot the X-axis displays the value ranges while the Y-axis plots the cumulative frequency or cumulative relative frequency for each range.
A scatter plot depicts the distribution of pairs of values on a rectangular, 2-dimensional plane. A scatter plot is the most effective method of analyzing the correlation between two variables. Values for one variable are tracked on the X-axis while values for the other variable are tracked on the Y-axis.
Editing a PlotTo edit an existing plot definition:
Defining Axis Types and Data SetsIn the example definition, both X axis and Y axis are defined as LINEAR. You can change this type to either LOG10 or DB. Although the example does not need to have a log Y axis, try changing it:
The XY GRAPH is not a convenient means for viewing complex numbers. If you want to make a graph with complex numbers, use either the RI GRAPH or the POLAR GRAPH. These graphs take one sweep data set, such as frequency, and generate a Real/Imaginary graph or a Polar graph.
Y2 DataAnother Y axis, called Y2 data, is available for XY GRAPH. The Y2 data axis is useful for showing another data set with a different magnitude or domain. For example, in a gain and phase versus frequency graph you can use the Y axis for gain and the Y2 axis for phase. The Y2 axis always requires one or more Y data sets because a slope of a Diag Line is derived from the left axis values. The program assumes that Y2 data shares the same setup with the X data, so the program never looks up the Y2 data and always draws against the X data in the plot definition. ExpressionAn expression can be entered into the data set fields described above, just like any other fields where an expression is allowed. For example, you can enter a natural log of id as log(id) in the Y Data 0 field. The calculated data set belongs to the setup where this plot definition exists.
A scalar value is expanded to an array of the constant value so that it shows up as a straight line on a graph. For more information on functions, refer to Chapter 9, "Using Transforms and Functions."
Multiple X DataIC-CAP allows plots to have multiple XY pairs in a single graph by looking up the same X data name in another setup. This is useful when comparing multiple XY pairs with different X ranges. Auto LookupEach Y data set is examined for its corresponding X data set. This feature, called Auto Lookup, takes the X data name from the plot definition and searches this name in the setup that has this particular Y data in question. If there is no such X data in that setup, then the X data in this plot definition is used. For example, the next definition draws two different sets of id vs vg curves based on large and short setups so that one set represents id vs vg of nmos2/large/idvg setup while the other set shows that of nmos2/short/idvg. The Y data names do not have to be the same. This feature supports all the report types.
If this plot exists in the nmos2/large/idvg setup, then the next definition is good enough to show the same curves. In both cases, the number of data points and points per curve may vary among Y data sets because each Y data is shown against its corresponding X data from their home setup.
The tabular report drops each Y data set that does not share the X data of the plot definition, because representing multiple, possibly independent X and Y data pairs in a simple 2-dimensional table is difficult. For example, the plot definition in the second table shows the vg and id of nmos2/large/idvg setup only. When you must show all data sets that do not share the same X data, set the system variable CHECK_PLOT_MATCH to No. Calculated DataIf an expression is entered into a plot definition, then the calculated result belongs to the setup where the plot definition exists. Therefore, when using a transform, you must calculate data within its home setup. For example, the next definition based on the previous example gives the wrong curves for Y Data 1 because the id in the short setup is drawn against vg in the large setup. If the data size does not match between the X and Y data sets, the program issues an error message.
Disabling LookupYou can disable the Auto Lookup so that all the Y data are drawn against the same X data even if these Y data sets do not belong to the same setup with the X data. To turn off the Auto Lookup set the system variable USE_PLOT_LOOKUP to No. Displaying Raw DataYou can view the raw data for an input, output, transform, or plot (except Multiplot) by selecting it and clicking View (in their respective folders). The data format displays the data point number, data index, and the real and imaginary part of the data.
The actual data points for an input, output, or transform are shown in real and imaginary format represented in the header by R and I. The data format for plots follows the report type of the plot itself. When the report type is XY GRAPH only the real part of the data is displayed.
The tabular data of a plot shows the Y data that belongs to the setup of this plot. Foreign Y data is not displayed because of the different X data. See Y2 Data. Displaying PlotsYou can open a plot window to view your measured and simulated data (see the following figures). The currently-defined graphs are listed in the Plots folder in each setup. You can open one or more plot windows at a time and each display appears in a separate window. For all plots except Multiplot, you can view the same data at the same time on a graph and in a tabular format. Measured data is displayed as a solid line; simulated data is displayed as small squares by default. Plots are automatically updated each time a measurement or simulation is performed. After an extraction and subsequent simulation, you can view the plots for agreement between measured and simulated data.
Alternatively, you can display a plot by selecting a plot definition and clicking the right mouse button. Then choose an option from the menu. Area ToolsTo display Area Tools, choose Options > Area Tools or right click then choose Graphic > Area Tools. The following figure shows a Plot window with Area Tools displayed. The PO (Plot Optimizer) area tool performs the same function as the Optimizer > Enable/Disable Plot menu pick. When enabled, the PO area tool is blue and the plot has a blue border. For additional information about the Plot Optimizer, see Chapter 8, "Using the Plot Optimizer." The A (Autoscale) area tool performs the same function as the Options > Autoscale menu pick. See Scaling. The E (Error) area tool performs the same function as the Options > Error menu pick. See Defining and Displaying Errors. The X (X Axis Type) area tool enables you to toggle through the available X axis types from the plot window. To view the current selection, position and hold the cursor over the area. The Y (Y Axis Type) area tool enables you to toggle through the available Y axis types from the plot window. To view the current selection, position and hold the cursor over the area. The Y2 (Y2 Axis Type) area tool enables you to toggle through the available Y axis types from the plot window. This area tool is only shown when a Y2 trace is present. Multiplot windows also have a Zoom area tool. The Zoom area tool enlarges the selected plot. A red border indicated which plot is selected. When Zoom is enabled, you can change which plot is enlarged simply by clicking on a different plot. In addition, the Plots menu enables you to zoom in or display a full page plot. Figure 38 shows a 2 plot Multiplot window with Zoom enabled.
ScalingAutoscaleAutoscale can be toggled on and off by either:
If a check mark is before the Autoscale menu item or the plot's A area tool is orange, Autoscale is on. When Autoscale is on, the axes will autoscale so all data is visible. When Autoscale is off, the state of this menu item is saved to .mdl files. For example, if you save a plot (or a model containing the plot) with Autoscale turned off, the plot retains the setting, and opens in the Autoscale OFF state the next time the plot is opened. Axes scaling is controlled by settings you choose in the Manual Rescale dialog box (Options > Manual Rescale). If you have a new plot, or a plot that has never had the scaling modified, turning Autoscale off locks the current settings in place. Any future toggling of Autoscale ON/OFF will switch between full scale, and this remembered setting. The remembered setting can be further modified by using the Options > Manual Rescale or Options > Set Scale menu choices. RescaleYou can zoom into a selected area of a plot by drawing a box around a portion of the plot, then either:
Also, you can pan across the plot by selecting a single point on the plot then choose Rescale. The plot moves so the selected point is at the display's center. When Autoscale is on, the rescaling is temporary. The next replot restores the plot to full Autoscale. Set ScaleThe Options > Set Scale menu item is a shortcut to establish Manual Rescale settings. You can also access this menu item by right clicking on the plot then choosing Scale > Set scale or from a Multiplot window by first selecting a plot then choosing Plots > Selected Plot Menu > Scaling > Set scale. Whether you are in autoscale mode or had performed a Rescale to zoom in on a region of the plot, choosing Options > Set Scale sets the Manual Rescale dialog box to the plot's current scaling values (e.g., X min, X max, Y min, Y max, etc.). Manual RescaleThe Manual rescale dialog box enables you to fully describe all three axes of XY plots in terms of minimum value, maximum value, number of major divisions, and number of minor divisions. You can access this dialog box by choosing Options > Manual rescale or right clicking on the plot then choosing Scaling > Manual rescale. In a Multiplot window, you can access this dialog by selecting a plot then choosing Plots > Selected Plot Menu > Scaling > Rescale.
Histogram and cumulative density plots permit scaling of the X axis and scatter plots permit scaling of the X and Y axes. Some requests may be denied due to algorithmic constraints, and in this case, the closest match is made updating the dialog with the actual values used. For example, LOG scaled axes are forced to the next decade, and the number of major and minor divisions are ignored. The number of major divisions in polar plots must be even. Manual Rescale enables you to set the minimum to a specific value, such as .123, without rounding the value up or down. While this gives you much greater control, it can cause some problems with numbers overwriting each other, usually on the X axis. However, LOG scaled axes will still round up or down to the nearest decade. Any settings established using Manual Rescale, the associated iccap_func command, or Options > Set Scale are saved with the plot in the .mdl file. To establish settings, choose OK or Apply. (OK also dismisses the dialog box.) To see what a plot looks like before establishing the current settings, choose Preview. To restore settings to the previously established ones, choose Reset or Cancel. To dismiss the dialog box, choose Cancel. The settings in this dialog box update dynamically whenever a plot's scale changes. Scales change dynamically for various reasons, including when a simulation changes an autoscaled limit, or the Options > Rescale menu item is chosen. Updated settings do not change your established settings until you choose OK, Apply, or Options > Set Scale. Dynamic updating is convenient when you want to establish new settings. Manual Rescale is fully controllable through PEL. To rescale a plot, use the iccap_func command for Plot:
The keywords Scale RI Plot Preview and Scale Plot Preview function in the same way as Scale RI Plot and Scale Plot, but the scaling will be lost on the next Replot command.
When the iccap_func command is used as shown above, prompts appear for the operator to enter required values for the parameters that describe the plot's scaling values. For additional information, see Scale Plot/Scale Plot Preview or Scale RI Plot/Scale RI Plot Preview in the Reference manual. Marking a PointYou can identify the nearest data point on the graph and show its X and Y values and data point number by marking a point. To erase the circle that marks the point:
The data point number has two digits separated by a slash. The number on the left of the slash represents the primary sweep point number (sweep order 1), and the number on the right shows the secondary sweep point number (sweep order 2). A data point on Y2 axis can not be identified. Drawing a Diagonal LineYou can draw a diagonal line connecting two clicked points and its slope, with both X and Y axis intercepts.
To erase the diagonal line, select Options > Draw Diag Line, without going through the mouse clicks forming the rectangle.
Setting VariablesWhen a rescale rectangle is shown on a plot, its X and Y values can be copied to system variables. Four variables (X_LOW, X_HIGH, Y_LOW, and Y_HIGH) are reserved for this purpose. You can use this feature when setting X and Y limits for optimization by specifying these variables in the Optimizer Options Table.
When a Multiplot includes plots from different setups, choosing Copy to Variable updates the variables in the setup where the single plot was initially defined and does NOT update the variables in the setup for the Multiplot.
The data values are taken directly from the plot. Therefore, you may need to transform those values to another form when they are used in the Optimizer Options Table. For example, if the optimization target is log(ic) and the plot shows ic versus ve with LOG10 Y axis type, the Y Bound in Optimization should be log(Y_LOW) and log(Y_HIGH).
Defining and Displaying ErrorsYou can display a plot's relative or absolute error based on either the entire plot or a selected region. The Error menu is only active when the Y2 trace is not occupied by another trace. In addition, only one trace of type Both can be present and if 2 traces are present, one must be of type Measured and the other of type Simulated or calculated. To view the Error menu, choose Options > Error or right click on the plot then choose Error. The Error menu contains the following choices:
A simulated/calculated data trace usually varies during tuning/simulation. Therefore once a region is selected, only a fixed number of measured points inside the green box are used to calculate the error terms.
If Area Tools are enabled, you can click on the plot's E area tool to toggle between displaying relative error, absolute error, or not displaying any error. The E area tool is green if error calculation is enabled. To enable Area Tools, choose Options > Area Tools. Setting Plot OptionsUsing the Plot Options dialog box, you can define trace options, plot options, text annotation, and for Multiplots, specify a PEL callback to run whenever the selected plot changes. The Plot Options dialog box can be opened from the:
If the Plot Options dialog box is opened from the Plot Editor dialog box or from a plot window, a Preview button is displayed between the OK and Cancel buttons. To apply the current settings to the plot without closing the Plot Options dialog box, choose the Preview button. To apply the current settings and close the dialog box, choose the OK button. To discard all changes and close the dialog, choose the Cancel button. To save the current settings to a file for later use, choose the Save button. The Save Plot Options dialog box appears. Enter a file name with a .pot extension and choose a file location. To load previously saved plot option settings, choose the Load button. The Open Plot Options File dialog box appears. Locate the saved file then choose Open. Trace OptionsThe Trace Options tab enables you to define trace colors and symbol shapes for all plots except Scatter, Histogram, and CDF plots. If you select Automatic, the default IC-CAP settings is used. If you select a specific color, an asterisk (*) is display next to the color to indicate that it is not the default color. Plot OptionsThe Plot Options tab enables you to define Data Representation, Layout and Background, and Text Font. However, for Scatter, Histogram, and CDF plots, the Data Representation section is not available. Text AnnotationThe Text Annotation tab enables you to add annotation text to document information such as date, lot number, simulation parameters, and so on. You can either directly enter text annotation or you can specify a PEL macro (see Annotating a Plot Using a PEL Macro). AdvancedThe Advanced tab enables you to specify a PEL callback (macro or transform) to run whenever the selected plot in a Multiplot changes. Note that reselecting the same plot will not invoke the callback. To specify a PEL callback, unselect Automatic then type in the callback path and name. Using a relative path, the callback is found relative to the Multiplot. Therefore, the path for macros is ../../MacroName and for transforms is ./TransformName. This is true regardless of where you open Plot Options. For example, if you open Plot Options from the Model window, the relative path for a macro is still ../../MacroName. The callback passes 3 arguments to the PEL function that are received by calling linput 3 times at the beginning of the callback. The first linput receives the name of the Multiplot where the selection is occurring. The second linput receives the new slot number selected (according to the entries on the plot definition, i.e., Plot 0 will be slot 0, Plot 2 will be slot 2, and so on). The third linput receives the old, no longer selected, plot number. A slot number of -2 indicates that no plots were selected. Example Plot Selection Callback
Restrictions
Multiplot LayoutThe Layout tab enables you to define the layout and background settings for a Mulitplot. Setting Other Plot CharacteristicsYou can enable or disable several other plot characteristics that are available on the Plot window's Options > Session Settings menu. Although IC-CAP only retains these settings during the current session, you can save the current setting to Plot Options, or you can reset your settings back to the saved Plot Options.
Saving a Plot ImageYou can save an image of a plot with its current characteristics and size.
On Windows, if the plot image is partially hidden by another window when you select Save Image, the saved plot image will be obscured by that window. Therefore, make sure the plot image is not partially hidden by another window before you select Save Image.
You can save plots in various formats in Plot windows, by using the File > Save Image menu item. This feature uses ImageMagick's "Convert" program. See Help > About IC-CAP for more information. Agilent Technologies officially supports the .GIF and .JPG formats, though .EPS, .PS, .HTML, .TIF, and other formats are available.
On Windows, you can copy a plot image to the Windows clipboard, paste it into another applications (such as Microsoft Paint), then save it in the other application.
To copy a plot image to the Windows clipboard, select Options > Copy to Clipboard or press Ctrl+C on the keyboard.
Annotating a Plot Using a PEL MacroEach plot can read a text file and display this text next to its graph. The text area is 40 characters by 25 lines maximum for the USASCII character set (see ANNOTATE_CSET in the section "Annotation Variables"). To add annotation text to a plot:
Annotation VariablesThe variables that control the annotation in a plot can be defined at any level, providing flexibility and programming capability. These variables are:
Annotation ExampleThe annotation example shows how to use the annotation text from the example plot used in this chapter. The following table shows variable values for this example, except ANNOTATE_FILE, which is defined in the legend macro program.
The legend macro program is shown in the following figure. This macro sets the ANNOTATE_FILE variable and writes text into this file. Later, a plot reads this file automatically for its annotation.
Advanced AnnotationAnnotation for Each PlotMultiple plots in a single setup share the same annotation macro and text file. To have different annotation for each plot in a single setup, create a macro program that generates texts and opens each plot in turn. In this case ANNOTATE_MACRO should be blank. 16-bit Code AnnotationIf you have installed NLIO for 16-bit character code such as Japanese, plots can display these native languages by assigning an appropriate character set to ANNOTATE_CSET. A macro program can include these 16-bit characters in a string and print them out into a file. However, you need to use an external text editor such vi in an hpterm window to input such characters. To edit a macro program with vi, add a new macro program in IC-CAP, write it out to a file, edit this file with vi, and then read it back into IC-CAP. IC-CAP can show you these 16-bit characters in a Macro Editor if a 16-bit code font is assigned. For example, for Japanese font, execute the program with the option shown below. Be sure to specify jpn for ANNOTATE_CSET in this case. iccap -xrm "iccap*XmText.?*FontList: jpn.8x18" |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() ![]() |