MCPcopy Index your code
hub / github.com/plotly/plotly.py / default_format

Method default_format

plotly/io/_orca.py:511–530  ·  view source on GitHub ↗

The default image format to use on image export. Valid image formats strings are: - 'png' - 'jpg' or 'jpeg' - 'webp' - 'svg' - 'pdf' - 'eps' (Requires the poppler library to be installed) This value is only applie

(self)

Source from the content-addressed store, hash-verified

509
510 @property
511 def default_format(self):
512 """
513 The default image format to use on image export.
514
515 Valid image formats strings are:
516 - 'png'
517 - 'jpg' or 'jpeg'
518 - 'webp'
519 - 'svg'
520 - 'pdf'
521 - 'eps' (Requires the poppler library to be installed)
522
523 This value is only applied if no format value is supplied to the
524 plotly.io to_image or write_image functions.
525
526 Returns
527 -------
528 str or None
529 """
530 return self._props.get("default_format", "png")
531
532 @default_format.setter
533 def default_format(self, val):

Callers

nothing calls this directly

Calls 3

validate_coerce_formatFunction · 0.85
getMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected