GridY
plotynium.marks.GridY
GridY(data=None, x1=None, x2=None, y=None, stroke=None, stroke_opacity=0.1, stroke_width=1, stroke_dasharray=None)
Marker for adding horizontal lines from y ticks.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
list[T]
|
List of y positions where horizontal lines will be placed. |
None
|
|
Callable[[T], Data] | str | None
|
X accessor function or key value for tail coordinates of the lines |
None
|
|
Callable[[T], Data] | str | None
|
X accessor function or key value for head coordinates of the lines |
None
|
|
Callable[[T], Data] | str | None
|
Y accessor function or key value |
None
|
|
Callable[[T], str] | str | None
|
Function which takes a data and returns a color applied for |
None
|
|
float
|
Stroke width value. |
1
|
|
float
|
Stroke opacity value included in [0, 1]. |
0.1
|
|
str | None
|
Stroke dasharray value. |
None
|
Source code in plotynium/marks/grid.py
apply
Add horizontal lines from y ticks.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Selection
|
SVG Content |
required |
|
Context
|
Context |
required |