hline
result = hline(y, [color=])
Input: y, color · Output: result
What it is
Draws a horizontal reference line spanning the whole panel at y (number, data units). color= (string, colour).
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
result = hline(y, [color=]) | y numberDraws a horizontal reference line spanning the whole panel at y (number, data units).color string, optionalcolor= (string, colour). | result — | Returns a handle, same properties as vline. |
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
from plotting