graphical.ridgeline
RidgelineChart
A console renderable to draw a ridgeline chart.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
Ttile of the ridgeline chart. Appears at the top. |
required |
value_range
|
Optional[Tuple[float, float]]
|
Range of values. Defaults to None. |
None
|
color
|
Union[Color, str]
|
Color of the ridgelines. Defaults to "default". |
'default'
|
ticks
|
Optional[Tuple[float, float]]
|
Max and min ticks on y-axis. Defaults to None. |
None
|
plot_style
|
OneLinePlotStyle
|
Data representation syle. Defaults to OneLinePlotStyle.AREA. |
AREA
|
box
|
Box
|
Style of the containing box. Defaults to HEAVY. |
HEAVY
|
Source code in src/graphical/ridgeline.py
add_row(label, values, color='default', plot_style=None)
Add a ridgeline to the chart.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
label
|
str
|
Label for the ridgeline row. |
required |
values
|
List[float]
|
Data values for ridgeline row. |
required |
color
|
Union[Color, str]
|
Color of the rigeline row. Defaults to "default". |
'default'
|
plot_style
|
Optional[OneLinePlotStyle]
|
Data representation syle. Defaults to None. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
RidgelineRow |
RidgelineRow
|
The added row. |