@@ -246,29 +246,29 @@ def to_image(
246
246
- 'webp'
247
247
- 'svg'
248
248
- '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)
250
250
251
251
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"
254
254
255
255
width: int or None
256
256
The width of the exported image in layout pixels. If the `scale`
257
257
property is 1.0, this will also be the width of the exported image
258
258
in physical pixels.
259
259
260
260
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"
263
263
264
264
height: int or None
265
265
The height of the exported image in layout pixels. If the `scale`
266
266
property is 1.0, this will also be the height of the exported image
267
267
in physical pixels.
268
268
269
269
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"
272
272
273
273
scale: int or float or None
274
274
The scale factor to use when exporting the figure. A scale factor
@@ -277,14 +277,14 @@ def to_image(
277
277
less than 1.0 will decrease the image resolution.
278
278
279
279
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"
282
282
283
283
validate: bool
284
284
True if the figure should be validated before being converted to
285
285
an image, False otherwise.
286
286
287
- engine (deprecated) : str
287
+ engine: str
288
288
Image export engine to use. This parameter is deprecated and Orca engine support will be
289
289
dropped in the next major Plotly version. Until then, the following values are supported:
290
290
- "kaleido": Use Kaleido for image export
@@ -430,31 +430,31 @@ def write_image(
430
430
- 'webp'
431
431
- 'svg'
432
432
- '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)
434
434
435
435
If not specified and `file` is a string then this will default to the
436
436
file extension. If not specified and `file` is not a string then this
437
437
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"
440
440
441
441
width: int or None
442
442
The width of the exported image in layout pixels. If the `scale`
443
443
property is 1.0, this will also be the width of the exported image
444
444
in physical pixels.
445
445
446
446
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"
449
449
450
450
height: int or None
451
451
The height of the exported image in layout pixels. If the `scale`
452
452
property is 1.0, this will also be the height of the exported image
453
453
in physical pixels.
454
454
455
455
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"
458
458
459
459
scale: int or float or None
460
460
The scale factor to use when exporting the figure. A scale factor
@@ -463,14 +463,14 @@ def write_image(
463
463
less than 1.0 will decrease the image resolution.
464
464
465
465
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"
468
468
469
469
validate: bool
470
470
True if the figure should be validated before being converted to
471
471
an image, False otherwise.
472
472
473
- engine (deprecated) : str
473
+ engine: str
474
474
Image export engine to use. This parameter is deprecated and Orca engine support will be
475
475
dropped in the next major Plotly version. Until then, the following values are supported:
476
476
- "kaleido": Use Kaleido for image export
@@ -577,7 +577,8 @@ def write_images(
577
577
provided to the `fig` argument.
578
578
Specify format as a `str` to apply the same format to all exported images.
579
579
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`.
581
582
582
583
width: int, None, or list of (int or None)
583
584
The width of the exported image in layout pixels. If the `scale`
@@ -587,7 +588,8 @@ def write_images(
587
588
Use a list to specify widths for each figure or dict in the list
588
589
provided to the `fig` argument.
589
590
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`.
591
593
592
594
height: int, None, or list of (int or None)
593
595
The height of the exported image in layout pixels. If the `scale`
@@ -597,7 +599,8 @@ def write_images(
597
599
Use a list to specify heights for each figure or dict in the list
598
600
provided to the `fig` argument.
599
601
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`.
601
604
602
605
scale: int, float, None, or list of (int, float, or None)
603
606
The scale factor to use when exporting the figure. A scale factor
@@ -608,7 +611,8 @@ def write_images(
608
611
Use a list to specify scale for each figure or dict in the list
609
612
provided to the `fig` argument.
610
613
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`.
612
616
613
617
validate: bool or list of bool
614
618
True if the figure should be validated before being converted to
0 commit comments