From 5cf6c809294a813263636eb0c6de4bb587d79153 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Tue, 6 Feb 2024 20:08:24 -0800 Subject: [PATCH 1/2] Fix rendering in documentation of histogram histfunc --- packages/python/plotly/plotly/express/_chart_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/plotly/plotly/express/_chart_types.py b/packages/python/plotly/plotly/express/_chart_types.py index dc2b22599e5..74cdf84fa49 100644 --- a/packages/python/plotly/plotly/express/_chart_types.py +++ b/packages/python/plotly/plotly/express/_chart_types.py @@ -497,7 +497,7 @@ def histogram( y=["If `orientation` is `'v'`, these values are used as inputs to `histfunc`."] + _wide_mode_xy_append, histfunc=[ - "The arguments to this function are the values of `y`(`x`) if `orientation` is `'v'`(`'h'`).", + "The arguments to this function are the values of `y` (`x`) if `orientation` is `'v'` (`'h'`).", ], ), ) From 92140125f04984e4af60460cddc1325384830f05 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Tue, 6 Feb 2024 20:14:42 -0800 Subject: [PATCH 2/2] Fix missing space between sentences in doc of histogram --- packages/python/plotly/plotly/express/_doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/plotly/plotly/express/_doc.py b/packages/python/plotly/plotly/express/_doc.py index 5137dea5b28..5a8690f856d 100644 --- a/packages/python/plotly/plotly/express/_doc.py +++ b/packages/python/plotly/plotly/express/_doc.py @@ -448,7 +448,7 @@ ], histfunc=[ "str (default `'count'` if no arguments are provided, else `'sum'`)", - "One of `'count'`, `'sum'`, `'avg'`, `'min'`, or `'max'`." + "One of `'count'`, `'sum'`, `'avg'`, `'min'`, or `'max'`.", "Function used to aggregate values for summarization (note: can be normalized with `histnorm`).", ], histnorm=[