RuleY
plotynium.marks.RuleY
RuleY(y, fill=None, fill_opacity=1.0, stroke=None, stroke_width=1.5, stroke_opacity=1.0, stroke_dasharray=None, opacity=1.0)
Marker for adding horizontal lines given a list of y positions
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
list[T]
|
List of y positions where horizontal lines will be placed. |
required |
|
Callable[[T], str] | str | None
|
Function which takes a data and returns a color applied for |
None
|
|
float
|
Fill opacity value included in [0, 1]. |
1.0
|
|
Callable[[T], str] | str | None
|
Function which takes a data and returns a color applied for |
None
|
|
float
|
Stroke width value. |
1.5
|
|
float
|
Stroke opacity value included in [0, 1]. |
1.0
|
|
str | None
|
Stroke dasharray value. |
None
|
|
float
|
General opacity value included in [0, 1]. |
1.0
|
Source code in plotynium/marks/rule.py
apply
Add horizontal lines on SVG content.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Selection
|
SVG Content |
required |
|
Context
|
Context |
required |