plot_setup
Creates and configures IC-CAP plots in one call, supporting all report types. Automatically resolves name conflicts and validates field mapping per plot type.
Instructions
Create and fully configure a Plot in one call, never creating a name conflict. Supports all IC-CAP report types: XY GRAPH, SMITH PLOT, POLAR PLOT, RI GRAPH, SCATTER PLOT, HISTOGRAM, CDF PLOT, MULTI PLOT. Field mapping is live-verified per type: XY GRAPH traces go to 'Y Data 0..7' + '# of Traces'; SMITH/POLAR/RI use 'Sweep Data' + 'Smith/Polar/RI Data 0..7'; SCATTER PLOT takes a single 'Y Data' (only y_data[0] is used); HISTOGRAM/CDF PLOT take a single 'Data-set' (pass data_set, or y_data[0]); MULTI PLOT takes sub-plot names in y_data -> 'Plot 0..N' + '# of Plots' (set 'Orientation' afterwards via tablevar_set). Conflict guard: when a Transform/Input/Output already uses the requested name, the Plot is auto-suffixed '_plot' ('_plot2', ... on collision) and the response reports name_adjusted/final_name. Reconfiguring an existing conflicted Plot (overwrite=true) writes fields through a rename-aside transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| header | No | Optional plot header text | |
| x_data | No | X-axis or sweep data source name. Maps to 'X Data' (XY/SCATTER) or 'Sweep Data' (SMITH/POLAR/RI) | |
| y_data | No | Trace data source names. Maps to 'Y Data 0..N' (XY), 'Smith/Polar/RI Data 0..N', single 'Y Data' (SCATTER, only first item used), or 'Data-set' (HISTOGRAM/CDF, first item used when data_set is omitted) | |
| data_set | No | Data-set source for HISTOGRAM / CDF PLOT. Optional; falls back to y_data[0]. | |
| overwrite | No | Delete and replace an existing Plot only when explicitly enabled | |
| plot_path | Yes | Plot path, e.g. '/model/dut/setup/my_plot' | |
| curve_data | No | Curve data source for parameterized plots (SMITH/POLAR/RI/XY). Optional. | |
| object_type | No | Reserved; plot_setup always creates a Plot. Omit or pass 'Plot'. | |
| report_type | No | Report type: XY GRAPH (default), SMITH PLOT, POLAR PLOT, RI GRAPH, SCATTER PLOT, HISTOGRAM, CDF PLOT | XY GRAPH |
| x_axis_type | No | X axis: LINEAR (default), LOG10, dB. Only used by XY GRAPH and SCATTER PLOT. | LINEAR |
| y_axis_type | No | Y axis: LINEAR (default), LOG10, dB. Only used by XY GRAPH and SCATTER PLOT. | LINEAR |
| allow_without_checkpoint | No | Proceed only if an automatic pre-overwrite save fails; use with care |