Skip to content

Commit 467c135

Browse files
committed
update docstrings
1 parent b91887b commit 467c135

File tree

2 files changed

+48
-44
lines changed

2 files changed

+48
-44
lines changed

plotly/basedatatypes.py

+20-20
Original file line numberDiff line numberDiff line change
@@ -3740,29 +3740,29 @@ def to_image(self, *args, **kwargs):
37403740
- 'webp'
37413741
- 'svg'
37423742
- 'pdf'
3743-
- 'eps' (deprecated) (Requires the poppler library to be installed)
3743+
- 'eps' (Kaleido v0.* only) (Requires the poppler library to be installed)
37443744
37453745
If not specified, will default to:
3746-
- `plotly.io.defaults.default_format` if engine is "kaleido"
3747-
- `plotly.io.orca.config.default_format` if engine is "orca" (deprecated)
3746+
- `plotly.io.defaults.default_format` or `plotly.io.kaleido.scope.default_format` if engine is "kaleido"
3747+
- `plotly.io.orca.config.default_format` if engine is "orca"
37483748
37493749
width: int or None
37503750
The width of the exported image in layout pixels. If the `scale`
37513751
property is 1.0, this will also be the width of the exported image
37523752
in physical pixels.
37533753
37543754
If not specified, will default to:
3755-
- `plotly.io.defaults.default_width` if engine is "kaleido"
3756-
- `plotly.io.orca.config.default_width` if engine is "orca" (deprecated)
3755+
- `plotly.io.defaults.default_width` or `plotly.io.kaleido.scope.default_width` if engine is "kaleido"
3756+
- `plotly.io.orca.config.default_width` if engine is "orca"
37573757
37583758
height: int or None
37593759
The height of the exported image in layout pixels. If the `scale`
37603760
property is 1.0, this will also be the height of the exported image
37613761
in physical pixels.
37623762
37633763
If not specified, will default to:
3764-
- `plotly.io.defaults.default_height` if engine is "kaleido"
3765-
- `plotly.io.orca.config.default_height` if engine is "orca" (deprecated)
3764+
- `plotly.io.defaults.default_height` or `plotly.io.kaleido.scope.default_height` if engine is "kaleido"
3765+
- `plotly.io.orca.config.default_height` if engine is "orca"
37663766
37673767
scale: int or float or None
37683768
The scale factor to use when exporting the figure. A scale factor
@@ -3771,14 +3771,14 @@ def to_image(self, *args, **kwargs):
37713771
less than 1.0 will decrease the image resolution.
37723772
37733773
If not specified, will default to:
3774-
- `plotly.io.defaults.default_scale` if engine is "kaliedo"
3775-
- `plotly.io.orca.config.default_scale` if engine is "orca" (deprecated)
3774+
- `plotly.io.defaults.default_scale` or `plotly.io.kaleido.scope.default_scale` if engine is "kaliedo"
3775+
- `plotly.io.orca.config.default_scale` if engine is "orca"
37763776
37773777
validate: bool
37783778
True if the figure should be validated before being converted to
37793779
an image, False otherwise.
37803780
3781-
engine (deprecated): str
3781+
engine: str
37823782
Image export engine to use. This parameter is deprecated and Orca engine support will be
37833783
dropped in the next major Plotly version. Until then, the following values are supported:
37843784
- "kaleido": Use Kaleido for image export
@@ -3834,31 +3834,31 @@ def write_image(self, *args, **kwargs):
38343834
- 'webp'
38353835
- 'svg'
38363836
- 'pdf'
3837-
- 'eps' (deprecated) (Requires the poppler library to be installed)
3837+
- 'eps' (Kaleido v0.* only) (Requires the poppler library to be installed)
38383838
38393839
If not specified and `file` is a string then this will default to the
38403840
file extension. If not specified and `file` is not a string then this
38413841
will default to:
3842-
- `plotly.io.defaults.default_format` if engine is "kaleido"
3843-
- `plotly.io.orca.config.default_format` if engine is "orca" (deprecated)
3842+
- `plotly.io.defaults.default_format` or `plotly.io.kaleido.scope.default_format` if engine is "kaleido"
3843+
- `plotly.io.orca.config.default_format` if engine is "orca"
38443844
38453845
width: int or None
38463846
The width of the exported image in layout pixels. If the `scale`
38473847
property is 1.0, this will also be the width of the exported image
38483848
in physical pixels.
38493849
38503850
If not specified, will default to:
3851-
- `plotly.io.defaults.default_width` if engine is "kaleido"
3852-
- `plotly.io.orca.config.default_width` if engine is "orca" (deprecated)
3851+
- `plotly.io.defaults.default_width` or `plotly.io.kaleido.scope.default_width` if engine is "kaleido"
3852+
- `plotly.io.orca.config.default_width` if engine is "orca"
38533853
38543854
height: int or None
38553855
The height of the exported image in layout pixels. If the `scale`
38563856
property is 1.0, this will also be the height of the exported image
38573857
in physical pixels.
38583858
38593859
If not specified, will default to:
3860-
- `plotly.io.defaults.default_height` if engine is "kaleido"
3861-
- `plotly.io.orca.config.default_height` if engine is "orca" (deprecated)
3860+
- `plotly.io.defaults.default_height` or `plotly.io.kaleido.scope.default_height` if engine is "kaleido"
3861+
- `plotly.io.orca.config.default_height` if engine is "orca"
38623862
38633863
scale: int or float or None
38643864
The scale factor to use when exporting the figure. A scale factor
@@ -3867,14 +3867,14 @@ def write_image(self, *args, **kwargs):
38673867
less than 1.0 will decrease the image resolution.
38683868
38693869
If not specified, will default to:
3870-
- `plotly.io.defaults.default_scale` if engine is "kaleido"
3871-
- `plotly.io.orca.config.default_scale` if engine is "orca" (deprecated)
3870+
- `plotly.io.defaults.default_scale` or `plotly.io.kaleido.scope.default_scale` if engine is "kaleido"
3871+
- `plotly.io.orca.config.default_scale` if engine is "orca"
38723872
38733873
validate: bool
38743874
True if the figure should be validated before being converted to
38753875
an image, False otherwise.
38763876
3877-
engine (deprecated): str
3877+
engine: str
38783878
Image export engine to use. This parameter is deprecated and Orca engine support will be
38793879
dropped in the next major Plotly version. Until then, the following values are supported:
38803880
- "kaleido": Use Kaleido for image export

plotly/io/_kaleido.py

+28-24
Original file line numberDiff line numberDiff line change
@@ -246,29 +246,29 @@ def to_image(
246246
- 'webp'
247247
- 'svg'
248248
- 'pdf'
249-
- 'eps' (deprecated) (Requires the poppler library to be installed and on the PATH)
249+
- 'eps' (Kaleido v0.* only) (Requires the poppler library to be installed and on the PATH)
250250
251251
If not specified, will default to:
252-
- `plotly.io.defaults.default_format` if engine is "kaleido"
253-
- `plotly.io.orca.config.default_format` if engine is "orca" (deprecated)
252+
- `plotly.io.defaults.default_format` or `plotly.io.kaleido.scope.default_format` if engine is "kaleido"
253+
- `plotly.io.orca.config.default_format` if engine is "orca"
254254
255255
width: int or None
256256
The width of the exported image in layout pixels. If the `scale`
257257
property is 1.0, this will also be the width of the exported image
258258
in physical pixels.
259259
260260
If not specified, will default to:
261-
- `plotly.io.defaults.default_width` if engine is "kaleido"
262-
- `plotly.io.orca.config.default_width` if engine is "orca" (deprecated)
261+
- `plotly.io.defaults.default_width` or `plotly.io.kaleido.scope.default_width` if engine is "kaleido"
262+
- `plotly.io.orca.config.default_width` if engine is "orca"
263263
264264
height: int or None
265265
The height of the exported image in layout pixels. If the `scale`
266266
property is 1.0, this will also be the height of the exported image
267267
in physical pixels.
268268
269269
If not specified, will default to:
270-
- `plotly.io.defaults.default_height` if engine is "kaleido"
271-
- `plotly.io.orca.config.default_height` if engine is "orca" (deprecated)
270+
- `plotly.io.defaults.default_height` or `plotly.io.kaleido.scope.default_height` if engine is "kaleido"
271+
- `plotly.io.orca.config.default_height` if engine is "orca"
272272
273273
scale: int or float or None
274274
The scale factor to use when exporting the figure. A scale factor
@@ -277,14 +277,14 @@ def to_image(
277277
less than 1.0 will decrease the image resolution.
278278
279279
If not specified, will default to:
280-
- `plotly.io.defaults.default_scale` if engine is "kaleido"
281-
- `plotly.io.orca.config.default_scale` if engine is "orca" (deprecated)
280+
- `plotly.io.defaults.default_scale` or `plotly.io.kaleido.scope.default_scale` if engine is "kaleido"
281+
- `plotly.io.orca.config.default_scale` if engine is "orca"
282282
283283
validate: bool
284284
True if the figure should be validated before being converted to
285285
an image, False otherwise.
286286
287-
engine (deprecated): str
287+
engine: str
288288
Image export engine to use. This parameter is deprecated and Orca engine support will be
289289
dropped in the next major Plotly version. Until then, the following values are supported:
290290
- "kaleido": Use Kaleido for image export
@@ -430,31 +430,31 @@ def write_image(
430430
- 'webp'
431431
- 'svg'
432432
- 'pdf'
433-
- 'eps' (deprecated) (Requires the poppler library to be installed and on the PATH)
433+
- 'eps' (Kaleido v0.* only) (Requires the poppler library to be installed and on the PATH)
434434
435435
If not specified and `file` is a string then this will default to the
436436
file extension. If not specified and `file` is not a string then this
437437
will default to:
438-
- `plotly.io.defaults.default_format` if engine is "kaleido"
439-
- `plotly.io.orca.config.default_format` if engine is "orca" (deprecated)
438+
- `plotly.io.defaults.default_format` or `plotly.io.kaleido.scope.default_format` if engine is "kaleido"
439+
- `plotly.io.orca.config.default_format` if engine is "orca"
440440
441441
width: int or None
442442
The width of the exported image in layout pixels. If the `scale`
443443
property is 1.0, this will also be the width of the exported image
444444
in physical pixels.
445445
446446
If not specified, will default to:
447-
- `plotly.io.defaults.default_width` if engine is "kaleido"
448-
- `plotly.io.orca.config.default_width` if engine is "orca" (deprecated)
447+
- `plotly.io.defaults.default_width` or `plotly.io.kaleido.scope.default_width` if engine is "kaleido"
448+
- `plotly.io.orca.config.default_width` if engine is "orca"
449449
450450
height: int or None
451451
The height of the exported image in layout pixels. If the `scale`
452452
property is 1.0, this will also be the height of the exported image
453453
in physical pixels.
454454
455455
If not specified, will default to:
456-
- `plotly.io.defaults.default_height` if engine is "kaleido"
457-
- `plotly.io.orca.config.default_height` if engine is "orca" (deprecated)
456+
- `plotly.io.defaults.default_height` or `plotly.io.kaleido.scope.default_height` if engine is "kaleido"
457+
- `plotly.io.orca.config.default_height` if engine is "orca"
458458
459459
scale: int or float or None
460460
The scale factor to use when exporting the figure. A scale factor
@@ -463,14 +463,14 @@ def write_image(
463463
less than 1.0 will decrease the image resolution.
464464
465465
If not specified, will default to:
466-
- `plotly.io.defaults.default_scale` if engine is "kaleido"
467-
- `plotly.io.orca.config.default_scale` if engine is "orca" (deprecated)
466+
- `plotly.io.defaults.default_scale` or `plotly.io.kaleido.scope.default_scale` if engine is "kaleido"
467+
- `plotly.io.orca.config.default_scale` if engine is "orca"
468468
469469
validate: bool
470470
True if the figure should be validated before being converted to
471471
an image, False otherwise.
472472
473-
engine (deprecated): str
473+
engine: str
474474
Image export engine to use. This parameter is deprecated and Orca engine support will be
475475
dropped in the next major Plotly version. Until then, the following values are supported:
476476
- "kaleido": Use Kaleido for image export
@@ -577,7 +577,8 @@ def write_images(
577577
provided to the `fig` argument.
578578
Specify format as a `str` to apply the same format to all exported images.
579579
If not specified, and the corresponding `file` argument has a file extension, then `format` will default to the
580-
file extension. Otherwise, will default to `plotly.io.defaults.default_format`.
580+
file extension. Otherwise, will default to `plotly.io.defaults.default_format`
581+
or `plotly.io.kaleido.scope.default_format`.
581582
582583
width: int, None, or list of (int or None)
583584
The width of the exported image in layout pixels. If the `scale`
@@ -587,7 +588,8 @@ def write_images(
587588
Use a list to specify widths for each figure or dict in the list
588589
provided to the `fig` argument.
589590
Specify width as an `int` to apply the same width to all exported images.
590-
If not specified, will default to `plotly.io.defaults.default_width`.
591+
If not specified, will default to `plotly.io.defaults.default_width`
592+
or `plotly.io.kaleido.scope.default_width`.
591593
592594
height: int, None, or list of (int or None)
593595
The height of the exported image in layout pixels. If the `scale`
@@ -597,7 +599,8 @@ def write_images(
597599
Use a list to specify heights for each figure or dict in the list
598600
provided to the `fig` argument.
599601
Specify height as an `int` to apply the same height to all exported images.
600-
If not specified, will default to `plotly.io.defaults.default_height`.
602+
If not specified, will default to `plotly.io.defaults.default_height`
603+
or `plotly.io.kaleido.scope.default_height`.
601604
602605
scale: int, float, None, or list of (int, float, or None)
603606
The scale factor to use when exporting the figure. A scale factor
@@ -608,7 +611,8 @@ def write_images(
608611
Use a list to specify scale for each figure or dict in the list
609612
provided to the `fig` argument.
610613
Specify scale as an `int` or `float` to apply the same scale to all exported images.
611-
If not specified, will default to `plotly.io.defaults.default_scale`.
614+
If not specified, will default to `plotly.io.defaults.default_scale`
615+
or `plotly.io.kaleido.scope.default_scale`.
612616
613617
validate: bool or list of bool
614618
True if the figure should be validated before being converted to

0 commit comments

Comments
 (0)