pywry.plotly_config¶
Configuration models for Plotly.js chart customization.
Plotly Configuration¶
pywry.plotly_config.PlotlyConfig
¶
Bases: BaseModel
Top-level Plotly.js configuration object.
Attributes¶
model_config
class-attribute
instance-attribute
¶
scroll_zoom
class-attribute
instance-attribute
¶
double_click
class-attribute
instance-attribute
¶
show_axis_range_entry_boxes
class-attribute
instance-attribute
¶
display_mode_bar
class-attribute
instance-attribute
¶
display_logo
class-attribute
instance-attribute
¶
mode_bar_buttons
class-attribute
instance-attribute
¶
mode_bar_buttons: list[list[StandardButton | str | ModeBarButton | dict[str, Any]]] | bool | None = Field(default=None, alias='modeBarButtons')
mode_bar_buttons_to_add
class-attribute
instance-attribute
¶
mode_bar_buttons_to_add: list[ModeBarButton | dict[str, Any]] | None = None
mode_bar_buttons_to_remove
class-attribute
instance-attribute
¶
mode_bar_buttons_to_remove: list[StandardButton | str] | None = None
Mode Bar Configuration¶
pywry.plotly_config.ModeBarConfig
¶
Bases: BaseModel
Configuration for the mode bar.
Attributes¶
model_config
class-attribute
instance-attribute
¶
buttons_to_add
class-attribute
instance-attribute
¶
buttons_to_add: list[ModeBarButton | dict[str, Any]] | None = None
buttons_to_remove
class-attribute
instance-attribute
¶
buttons_to_remove: list[StandardButton | str] | None = None
remove
class-attribute
instance-attribute
¶
remove: list[StandardButton | str] | None = Field(default=None, alias='modeBarButtonsToRemove')
add
class-attribute
instance-attribute
¶
add: list[ModeBarButton | dict[str, Any]] | None = Field(default=None, alias='modeBarButtonsToAdd')
Mode Bar Button¶
pywry.plotly_config.ModeBarButton
¶
Standard Buttons¶
pywry.plotly_config.StandardButton
¶
Bases: str, Enum
Standard Plotly modebar buttons.
Custom Icons¶
SVG Icon¶
pywry.plotly_config.SvgIcon
¶
Plotly Icon Name¶
pywry.plotly_config.PlotlyIconName
¶
Bases: str, Enum
Built-in Plotly icon names.
These values must exactly match the keys in Plotly.Icons (from ploticon.js). See: https://github.com/plotly/plotly.js/blob/master/src/fonts/ploticon.js
Attributes¶
Built-in Custom Buttons¶
pywry.plotly_config.DownloadImageButton
¶
Bases: ModeBarButton
Button to download the chart as an image.
pywry.plotly_config.ResetAxesButton
¶
Bases: ModeBarButton
Button to reset axes.