Skip to content

Commit 74d3bae

Browse files
committed
add width, height, and config to docstring
1 parent a3550e6 commit 74d3bae

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

packages/python/plotly/plotly/basedatatypes.py

+12
Original file line numberDiff line numberDiff line change
@@ -3150,6 +3150,18 @@ def show(self, *args, **kwargs):
31503150
True if the figure should be validated before being shown,
31513151
False otherwise.
31523152
3153+
width: int or float
3154+
An integer or float that determines the number of pixels wide the
3155+
plot is. The default is set in plotly.js.
3156+
3157+
height: int or float
3158+
An integer or float that determines the number of pixels wide the
3159+
plot is. The default is set in plotly.js.
3160+
3161+
config: dict
3162+
A dict of parameters to configure the figure. The defaults are set
3163+
in plotly.js.
3164+
31533165
Returns
31543166
-------
31553167
None

packages/python/plotly/plotly/io/_renderers.py

+12
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,18 @@ def show(fig, renderer=None, validate=True, **kwargs):
367367
True if the figure should be validated before being shown,
368368
False otherwise.
369369
370+
width: int or float
371+
An integer or float that determines the number of pixels wide the
372+
plot is. The default is set in plotly.js.
373+
374+
height: int or float
375+
An integer or float that determines the number of pixels wide the
376+
plot is. The default is set in plotly.js.
377+
378+
config: dict
379+
A dict of parameters to configure the figure. The defaults are set
380+
in plotly.js.
381+
370382
Returns
371383
-------
372384
None

0 commit comments

Comments
 (0)