Skip to content

Commit

Permalink
DOC: Use plain path in See Also
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Aug 9, 2023
1 parent 57959e7 commit 83c9025
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 23 deletions.
4 changes: 2 additions & 2 deletions plotnine/doctools.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def parameters_str_to_dict(param_section: str) -> dict[str, str]:
See Also
--------
[](`~plotnine.doctools.parameters_dict_to_str`)
plotnine.doctools.parameters_dict_to_str
"""
d = {}
previous_param = ""
Expand Down Expand Up @@ -383,7 +383,7 @@ def parameters_dict_to_str(d: dict[str, str]) -> str:
See Also
--------
[](`~plotnine.doctools.parameters_str_to_dict`)
plotnine.doctools.parameters_str_to_dict
"""
return "\n".join(d.values())

Expand Down
10 changes: 3 additions & 7 deletions plotnine/mapping/aes.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,9 @@ class aes(Dict[str, Any]):
See Also
--------
[](~plotnine.mapping.after_stat) - For how to map aesthetics to
variable calculated by the stat
[](~plotnine.mapping.after_scale) - For how to alter aesthetics
after the data has been mapped by the scale.
[](~plotnine.mapping.stage) - For how to map to evaluate the
mapping to aesthetics at more than one stage of the plot building
pipeline.
plotnine.mapping.after_stat
plotnine.mapping.after_scale
plotnine.mapping.stage
"""

def __init__(self, *args, **kwargs):
Expand Down
12 changes: 4 additions & 8 deletions plotnine/mapping/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ def after_stat(x):
See Also
--------
[](~plotnine.mappgin.after_scale) : For how to alter aesthetics after
the data has been mapped by the scale.
[](~plotnine.mappgin.stage) : For how to map to aesthetics at more than
one stage of the plot building pipeline.
plotnine.mapping.after_scale
plotnine.mapping.stage
"""
return stage(after_stat=x)

Expand All @@ -105,10 +103,8 @@ def after_scale(x):
See Also
--------
[](~plotnine.mapping.after_stat) : For how to map aesthetics to variable
calculated by the stat
[](~plotnine.mapping.stage) : For how to map to aesthetics at more than
one stage of the plot building pipeline.
plotnine.mapping.after_stat
plotnine.mapping.stage
"""
return stage(after_scale=x)

Expand Down
12 changes: 6 additions & 6 deletions plotnine/scales/scale_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ class scale_color_gradient(scale_continuous):
See Also
--------
[](`~plotnine.scales.scale_color_gradient2`)
[](`~plotnine.scales.scale_color_gradientn`)
plotnine.scales.scale_color_gradient2
plotnine.scales.scale_color_gradientn
"""

_aesthetics = ["color"]
Expand Down Expand Up @@ -283,8 +283,8 @@ class scale_color_gradient2(scale_continuous):
See Also
--------
[](`~plotnine.scales.scale_color_gradient`)
[](`~plotnine.scales.scale_color_gradientn`)
plotnine.scales.scale_color_gradient
plotnine.scales.scale_color_gradientn
"""

_aesthetics = ["color"]
Expand Down Expand Up @@ -344,8 +344,8 @@ class scale_color_gradientn(scale_continuous):
See Also
--------
[](`~plotnine.scales.scale_color_gradient`)
[](`~plotnine.scales.scale_color_gradientn`)
plotnine.scales.scale_color_gradient
plotnine.scales.scale_color_gradientn
"""

_aesthetics = ["color"]
Expand Down

0 comments on commit 83c9025

Please sign in to comment.