From fe4d710bb6c341f44be3a86d3c39f1239942d1a1 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Tue, 8 Sep 2026 17:51:28 +0800 Subject: [PATCH] Figure.histogram: Migrate parameter 'stairs' to the new alias system --- pygmt/src/histogram.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pygmt/src/histogram.py b/pygmt/src/histogram.py index b06e4b15737..849b255ff16 100644 --- a/pygmt/src/histogram.py +++ b/pygmt/src/histogram.py @@ -25,7 +25,6 @@ L="extreme", N="distribution", Q="cumulative", - S="stairs", T="series", Z="histtype", b="binary", @@ -45,6 +44,7 @@ def histogram( pen: str | None = None, fill: str | None = None, horizontal: bool = False, + stairs: bool = False, projection: str | None = None, region: Sequence[float | str] | str | None = None, frame: Frame | Axis | Literal["none"] | str | Sequence[str] | bool = False, @@ -69,6 +69,7 @@ def histogram( - G = fill - J = projection - R = region + - S = stairs - V = verbose - W = pen - c = panel @@ -125,9 +126,9 @@ def histogram( bins. To only include extreme values below first bin into the first bin, use **l**, and to only include extreme values above the last bin into that last bin, use **h**. - stairs : bool - Draw a stairs-step diagram which does not include the internal bars - of the default histogram. + stairs + Draw a stairs-step diagram which does not include the internal bars of the + default histogram. horizontal Plot the histogram horizontally from x = 0 [Default is vertically from y = 0]. The plot dimensions remain the same, but the two axes are flipped, i.e., the @@ -176,6 +177,7 @@ def histogram( Alias(bar_offset, name="bar_offset", prefix="+o"), ], G=Alias(fill, name="fill"), + S=Alias(stairs, name="stairs"), W=Alias(pen, name="pen"), ).add_common( B=frame,