Ridge plot
This module contains the main function to plot ridgeplots.
ridgeplot(ax, data, xlim=None, fill_colors=None, line_colors=None, label_size=10.0, fill_alpha=0.5)
¶
plotting a ridgeplot
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ax
|
Axes
|
a matplotlib ax object for writing the plot |
required |
data
|
dict[str, list[float]]
|
a dictionary of data, key is the label of the group, values are the data values in the group |
required |
xlim
|
Optional[tuple[float, float]]
|
x-limits for the plot (xmin, xmax) |
None
|
fill_colors
|
Optional[list[str]]
|
colors for the fill under the distribution, must be same length as input data (default: all steelblue) |
None
|
line_colors
|
Optional[list[str]]
|
colors for the line drawing the distribution, must be same length as input data (default: all white) |
None
|
label_size
|
float
|
label size of the name of each distribution |
10.0
|
fill_alpha
|
float
|
alpha value for the fill under the distribution (default: 0.5) |
0.5
|
Returns:
| Type | Description |
|---|---|
None
|
NoneType |