Skip to content

Commit

Permalink
Better documentation of draw_svg y_ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
hyanwong authored and mergify[bot] committed Oct 1, 2024
1 parent 55e5535 commit f8dc908
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions python/tskit/trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -1900,9 +1900,11 @@ def draw_svg(
do not plot a Y axis.
:param str y_label: Place a label to the left of the plot. If ``None`` (default)
and there is a Y axis, create and place an appropriate label.
:param list y_ticks: A list of Y values at which to plot tickmarks (``[]``
gives no tickmarks). If ``None``, plot one tickmark for each unique
node value.
:param Union[list, dict] y_ticks: A list of Y values at which to plot
tickmarks, or a dictionary mapping Y values to labels (``[]`` gives no
tickmarks). If ``None`` (default), plot one tickmark for each unique node
value. Note that if ``time_scale="rank"``, the Y values refer to the
zero-based rank of the plotted nodes, rather than the node time itself.
:param bool y_gridlines: Whether to plot horizontal lines behind the tree
at each y tickmark.
:param bool all_edge_mutations: The edge on which a mutation occurs may span
Expand Down Expand Up @@ -7273,9 +7275,11 @@ def draw_svg(
do not plot a Y axis.
:param str y_label: Place a label to the left of the plot. If ``None`` (default)
and there is a Y axis, create and place an appropriate label.
:param list y_ticks: A list of Y values at which to plot tickmarks (``[]``
gives no tickmarks). If ``None``, plot one tickmark for each unique
node value.
:param Union[list, dict] y_ticks: A list of Y values at which to plot
tickmarks, or a dictionary mapping Y values to labels (``[]`` gives no
tickmarks). If ``None`` (default), plot one tickmark for each unique node
value. Note that if ``time_scale="rank"``, the Y values refer to the
zero-based rank of the plotted nodes, rather than the node time itself.
:param bool y_gridlines: Whether to plot horizontal lines behind the tree
at each y tickmark.
:param bool omit_sites: If True, omit sites and mutations from the drawing.
Expand Down

0 comments on commit f8dc908

Please sign in to comment.