diff --git a/reView/cli.py b/reView/cli.py index 7e0e47d..2b0437d 100644 --- a/reView/cli.py +++ b/reView/cli.py @@ -516,12 +516,12 @@ def map_column( default=None, type=click.IntRange(min=0, max=500), help=("Width of output histogram. If not specified, default " - "width is 80% of the termimal width.")) + "width is 80% of the terminal width.")) @click.option('--height', '-H', required=False, default=None, type=click.IntRange(min=0, max=500), help=("Height of output histogram. If not specified, default " - "height is the smaller of 50% of the terminal width or " + "height is the smaller of 20% of the terminal width or " "100% of the terminal height.")) def histogram(supply_curve_csv, column, nbins, width, height): """ diff --git a/reView/utils/plots.py b/reView/utils/plots.py index 8e86a92..d4bd09c 100644 --- a/reView/utils/plots.py +++ b/reView/utils/plots.py @@ -325,6 +325,18 @@ def ascii_histogram(df, column, nbins=20, width=None, height=None): Name of column to plot. Must have a numeric dtype. nbins : int, optional Number of bins to plot in the histogram, by default 20. + width : int, optional + Width of the histogram plot (in characters). By default None, which + will set the width to 80% of the terminal width. + height : int, optional + Height of the histogram plot (in characters). By default None, which + will set the width to the smaller of either 20% of the terminal width + or 100% of the terminal height. + + Raises + ------ + TypeError + _description_ """ if not is_numeric_dtype(df[column]):