awvPlaceWaveformLabel
awvPlaceWaveformLabel(w_windowID x_waveIndex l_location t_label t_expr[?textOffsetg_textOffset] [?colort_color] [?justifyt_justify] [?fontStylet_fontStyle] [?heightt_height] [?orientt_orient] [?subwindowx_subwindow] ) =>s_labelID/nil
Description
Adds a graph label or a marker label to the specified trace in a subwindow.
Arguments
Value Returned
|
Identification number of the graph label or the marker label. |
|
|
The graph label or the marker label cannot be placed because of an error. |
Examples
The following example returns the trace numbers and waveform names plotted in subwindow 2 of the current Waveform window.
awvGetWaveNameList(awvGetCurrentWindow() ?subwindow 2)
=>
((2 5)
("out" "net10")
)
The trace out is identified with the index number 2 and net10 is identified with the trace number 5.
The following example places a point marker and a label markerLabelonTraceNet10 on the trace net10 at x=50ns and y=0.5 in subwindow 2 of the current Waveform window.
awvPlaceWaveformLabel(awvGetCurrentWindow() 5 list(50ns 0.5) "markerLabelonTraceNet10" nil ?textOffset t ?subwindow 2)
=> ("pointMarker[45.79.17]")
The following example places a point marker and a label markerLabelonTraceOut on the trace out at x=50ns and y=2.5 in subwindow 2 of the current Waveform window.
awvPlaceWaveformLabel(awvGetCurrentWindow() 2 list(50ns 2.5) "markerLabelonTraceOut" nil ?textOffset t subwindow 2)
=> ("pointMarker[45.79.18]")
The following example places a graph label graphLabelonTraceOut on the trace out at x=0 and y=1 in subwindow 2 of the current Waveform window.
awvPlaceWaveformLabel(awvGetCurrentWindow() 2 list(0 1) "graphLabelonTraceOut" nil ?textOffset nil ?subwindow 2)
=> ("graphLabel[45.79.24]")
The following example places a graph label graphLabelonTraceNet10 on the trace net10 at x=1 and y=1 in subwindow 2 of the current Waveform window.
awvPlaceWaveformLabel(awvGetCurrentWindow() 5 list(1 1) "graphLabelonTraceNet10" nil ?textOffset nil ?subwindow 2)
=> ("graphLabel[45.79.25]")
-
The valid location of a graph label ranges between absolute x-axis and y-axis coordinates (
0,0) and (1,1). - The valid location of a marker ranges between data coordinates defined by x axis and y axis limits.
The following example returns nil and reports an error because the specified location for the graph label is not within the range (0,0) and (1,1).
awvPlaceWaveformLabel(awvGetCurrentWindow() 2 list(0 2) "graphLabelonTraceOut" nil ?textOffset nil ?subwindow 2)
The location specified for placing a label on the graph is invalid. Specify a valid label location between the following ranges (upper and lower bounds inclusive).
x-axis: (0,1)
y-axis: (0,1)
=> nil
The following example returns nil and reports an error because the specified location for the marker label is outside of the x-axis and y-axis limits of the graph:
awvPlaceWaveformLabel(awvGetCurrentWindow() 5 list(600ns 0.5) "markerLabelonTraceNet10" nil ?textOffset t ?subwindow 2)
The location specified for placing a marker on the graph is invalid. Specify a valid marker location between the following ranges (upper and lower bounds inclusive).
x-axis: (0.0,5e-07)
y-axis: (-3.388872,4.206791)
=> nil
Return to top