Skip to content

Commit 552ab97

Browse files
committed
add barwidth docstring in histogram.py
1 parent fe13b38 commit 552ab97

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pygmt/src/histogram.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,21 @@ def histogram(self, table, **kwargs):
5050
{W}
5151
{c}
5252
annotate : bool or str
53+
[**+b**][**+f**\ *font*][**+o**\ *off*][**+r**]
5354
Annotate each bar with the count it represents. Append any of the
5455
following modifiers: Use **+b** to place the labels beneath the bars
5556
instead of above; use **+f** to change to another font than the default
5657
annotation font; use **+o** to change the offset between bar and
5758
label [6p]; use **+r** to rotate the labels from horizontal to vertical.
59+
barwidth : int or float or str
60+
*width*\ [**+o**\ *offset*]
61+
Use an alternative histogram bar width than the default set via **-T**,
62+
and optionally shift all bars by an *offset*. Here *width* is either
63+
an alternative width in data units, or the user may append a valid plot
64+
dimension unit (**c**\|\ **i**\|\ **p**) for a fixed dimension instead.
65+
Optionally, all bins may be shifted along the axis by *offset*. As for
66+
*width*, it may be given in data units of plot dimension units by appending
67+
the relevant unit.
5868
label : str
5969
Add a legend entry for the symbol or line being plotted.
6070
{p}

0 commit comments

Comments
 (0)