Product Documentation
Virtuoso Visualization and Analysis XL SKILL Reference
Product Version IC23.1, November 2023

awvSetLegendWidth

awvSetLegendWidth(
w_windowID
x_width
[ ?subwindow x_subwindow ]
)
=> t / nil

Description

Sets the width of the trace legend in a subwindow of the specified Waveform window. The function works only when the trace legend position is set to left.

Arguments

w_windowID

Waveform window ID.

x_width

Width to be set for the trace legend.

?subwindow x_subwindow

Identification number of the subwindow, which is found in the top-right corner of the subwindow.

If you do not specify this argument, width of the trace legend is set in the current subwindow.

Value Returned

t

Width of the trace legend is set successfully.

nil

The specified Waveform window or subwindow does not exist.

Examples

The following example creates a Waveform window.

win=awvCreatePlotWindow()
=> window:10

Opens simulation results stored in the specified directory:

openResults("/servers/user/design/ampsim.raw")
=> "/servers/user/design/ampsim.raw"

Plots the waveforms of net10 and out signals from the simulation results.

awvPlotWaveform(
    win
    list(v("net10" ?result "tran-tran") v("out" ?result "tran-tran"))
    )
=> t

The following example sets the width of the trace legend to 240.

awvSetLegendWidth(win 240)
=> t

The following example sets the width of trace legend to 120 in subwindow 2 of the specified Waveform window.

awvSetLegendWidth(window(9) 120 ?subwindow 2)
=> t

Return to top
 ⠀
X