From 74d3bae512c305e7f26344c399ba764a2031754d Mon Sep 17 00:00:00 2001 From: Brandon Andersen Date: Wed, 11 Nov 2020 15:39:20 -0500 Subject: [PATCH] add width, height, and config to docstring --- packages/python/plotly/plotly/basedatatypes.py | 12 ++++++++++++ packages/python/plotly/plotly/io/_renderers.py | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/packages/python/plotly/plotly/basedatatypes.py b/packages/python/plotly/plotly/basedatatypes.py index 5b85e46fe97..27d0c9c168c 100644 --- a/packages/python/plotly/plotly/basedatatypes.py +++ b/packages/python/plotly/plotly/basedatatypes.py @@ -3150,6 +3150,18 @@ def show(self, *args, **kwargs): True if the figure should be validated before being shown, False otherwise. + width: int or float + An integer or float that determines the number of pixels wide the + plot is. The default is set in plotly.js. + + height: int or float + An integer or float that determines the number of pixels wide the + plot is. The default is set in plotly.js. + + config: dict + A dict of parameters to configure the figure. The defaults are set + in plotly.js. + Returns ------- None diff --git a/packages/python/plotly/plotly/io/_renderers.py b/packages/python/plotly/plotly/io/_renderers.py index 22b0f92c394..90deed22a39 100644 --- a/packages/python/plotly/plotly/io/_renderers.py +++ b/packages/python/plotly/plotly/io/_renderers.py @@ -367,6 +367,18 @@ def show(fig, renderer=None, validate=True, **kwargs): True if the figure should be validated before being shown, False otherwise. + width: int or float + An integer or float that determines the number of pixels wide the + plot is. The default is set in plotly.js. + + height: int or float + An integer or float that determines the number of pixels wide the + plot is. The default is set in plotly.js. + + config: dict + A dict of parameters to configure the figure. The defaults are set + in plotly.js. + Returns ------- None