From 5d713d016efdeeb0bf528c0526c2a523ee6896d0 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Tue, 18 Aug 2020 14:13:21 -0400 Subject: [PATCH 1/2] skip legend arg in pandas hist --- packages/python/plotly/plotly/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/plotly/plotly/__init__.py b/packages/python/plotly/plotly/__init__.py index 838ed2377b1..bc5f483cd10 100644 --- a/packages/python/plotly/plotly/__init__.py +++ b/packages/python/plotly/plotly/__init__.py @@ -158,7 +158,7 @@ def hist_frame(data_frame, **kwargs): from .express import histogram skip = ["column", "by", "grid", "xlabelsize", "xrot", "ylabelsize", "yrot"] - skip += ["ax", "sharex", "sharey", "figsize", "layout", "bins"] + skip += ["ax", "sharex", "sharey", "figsize", "layout", "bins", "legend"] new_kwargs = {k: kwargs[k] for k in kwargs if k not in skip} return histogram(data_frame, **new_kwargs) From a810a95da79f3ec392eb8896cc551ee366ed7600 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Tue, 18 Aug 2020 14:27:10 -0400 Subject: [PATCH 2/2] skip legend arg in pandas hist --- packages/python/plotly/plotly/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/plotly/plotly/__init__.py b/packages/python/plotly/plotly/__init__.py index bc5f483cd10..999c8e0f9fd 100644 --- a/packages/python/plotly/plotly/__init__.py +++ b/packages/python/plotly/plotly/__init__.py @@ -172,6 +172,6 @@ def hist_series(data_frame, **kwargs): from .express import histogram skip = ["by", "grid", "xlabelsize", "xrot", "ylabelsize", "yrot", "ax"] - skip += ["figsize", "bins"] + skip += ["figsize", "bins", "legend"] new_kwargs = {k: kwargs[k] for k in kwargs if k not in skip} return histogram(data_frame, **new_kwargs)