visualdynamics.plot.report_caption¶
report_caption
¶
A report plot's caption, drawn under the plot as a block of rows.
A caption saved inside the picture travels with it: a plot pasted into
a document or attached to an email keeps the lines that let a reader
check it (which channel, which run, the line spacing, the window, the
overlap, the degrees of freedom, the requirement). The rows are a
core.report_caption.RecordCaption's, one per line, each led by its
label in bold, so nothing is carried by color.
Functions:
| Name | Description |
|---|---|
caption_html |
The caption's rows as HTML lines for a label: the label in bold, |
add_caption |
Put the caption block under everything already in |
Functions:¶
caption_html
¶
The caption's rows as HTML lines for a label: the label in bold,
then what it says, one row a line, a row longer than width
characters carried on to the next line indented.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
caption
|
RecordCaption
|
The caption. |
required |
width
|
int
|
The characters a line holds before it is carried on. |
110
|
Returns:
| Type | Description |
|---|---|
str
|
|
Source code in src/visualdynamics/plot/report_caption.py
add_caption
¶
Put the caption block under everything already in layout, the
full width of it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layout
|
GraphicsLayout or GraphicsLayoutWidget
|
What the plot was built into. |
required |
caption
|
RecordCaption
|
The caption. |
required |
color
|
color
|
The text color; the theme's foreground is what callers pass. |
None
|
size
|
str
|
The font size. |
'9pt'
|
Returns:
| Type | Description |
|---|---|
LabelItem
|
The block, marked |