Qu

text

Builtin index · Plotting

result = text(x, y, text)

Input: x, y, text · Output: result

What it is

Plain text label text (string) placed at (x, y) (numbers, data units), no marker dot.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = text(x, y, text)
x string or numbernot documented yet
y string or numbernot documented yet
text string or numbernot documented yet
result —
Returns a handle with color/text/x/y/size/italic properties.

Examples

From the documentation, and run by the build -- the output and the figure below are what the engine actually produced. Simplest first.

lab  = text(120, 5.35, "6 dB = 1 bit", color = "#0E7C86")
rule = hline(6, dash = true, width = 1.4)
rule.color = lab.color        # one ink, stated once

print(rule.color)             # "#0e7c86" -- the rule really did pick up the label's colour

output
#0e7c86
-2.0 -1.5 -1.0 -0.5 0 0.5 1.0 1.5 2.0 -2.0 -1.5 -1.0 -0.5 0 0.5 1.0 1.5 2.0 (0, 1.9) 6 dB = 1 bit

from plotting