layout.updatemenus
fig.update_layout(updatemenus=list(...))
layout.updatemenus[]
0
Determines which button (by index starting from 0) is considered active.
layout.updatemenus[]
Sets the background color of the update menu buttons.
layout.updatemenus[]
"#BEC8D9"
Sets the color of the border enclosing the update menu.
layout.updatemenus[]
1
Sets the width (in px) of the border enclosing the update menu.
layout.updatemenus[]
layout.updatemenus[].buttons[]
Sets the arguments values to be passed to the Plotly method set in `method` on click.
layout.updatemenus[].buttons[]
Sets a 2nd set of `args`, these arguments values are passed to the Plotly method set in `method` when clicking this button while in the active state. Use this to create toggle buttons.
layout.updatemenus[].buttons[]
True
When True, the API method is executed. When False, all other behaviors are the same and command execution is skipped. This may be useful when hooking into, for example, the `plotly_buttonclicked` method and executing the API command manually without losing the benefit of the updatemenu automatically binding to the state of the plot through the specification of `method` and `args`.
layout.updatemenus[].buttons[]
""
Sets the text label to appear on the button.
layout.updatemenus[].buttons[]
"restyle"
| "relayout"
| "animate"
| "update"
| "skip"
) "restyle"
Sets the Plotly method to be called on click. If the `skip` method is used, the API updatemenu will function as normal but will perform no API calls and will not bind automatically to state updates. This may be used to create a component interface and attach to updatemenu events manually via JavaScript.
layout.updatemenus[].buttons[]
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications (including `visible: False` or `enabled: False` to hide it). Has no effect outside of a template.
layout.updatemenus[].buttons[]
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (including `visible: False` or `enabled: False` to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: True`.
layout.updatemenus[].buttons[]
Determines whether or not this button is visible.
layout.updatemenus[]
"left"
| "right"
| "up"
| "down"
) "down"
Determines the direction in which the buttons are laid out, whether in a dropdown menu or a row/column of buttons. For `left` and `up`, the buttons will still appear in left-to-right or top-to-bottom order respectively.
layout.updatemenus[]
Sets the font of the update menu button text.
layout.updatemenus[].font
layout.updatemenus[].font
HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.
layout.updatemenus[].font
"under"
, "over"
, "through"
joined with a "+"
OR "none"
. "under"
, "over"
, "under+over"
, "under+over+through"
, "none"
"none"
Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations e.g. "under+over", etc.
layout.updatemenus[].font
"none"
Sets the shape and color of the shadow behind text. "auto" places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
layout.updatemenus[].font
layout.updatemenus[].font
"normal"
| "italic"
) "normal"
Sets whether a font should be styled with a normal or italic face from its family.
layout.updatemenus[].font
"normal"
| "word caps"
| "upper"
| "lower"
) "normal"
Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
layout.updatemenus[].font
"normal"
| "small-caps"
| "all-small-caps"
| "all-petite-caps"
| "petite-caps"
| "unicase"
) "normal"
Sets the variant of the font.
layout.updatemenus[].font
normal
Sets the weight (or boldness) of the font.
layout.updatemenus[]
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications (including `visible: False` or `enabled: False` to hide it). Has no effect outside of a template.
layout.updatemenus[]
Sets the padding around the buttons or dropdown menu.
layout.updatemenus[].pad
0
The amount of padding (in px) along the bottom of the component.
layout.updatemenus[].pad
0
The amount of padding (in px) on the left side of the component.
layout.updatemenus[].pad
0
The amount of padding (in px) on the right side of the component.
layout.updatemenus[].pad
0
The amount of padding (in px) along the top of the component.
layout.updatemenus[]
True
Highlights active dropdown item or active button if True.
layout.updatemenus[]
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (including `visible: False` or `enabled: False` to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: True`.
layout.updatemenus[]
"dropdown"
| "buttons"
) "dropdown"
Determines whether the buttons are accessible via a dropdown menu or whether the buttons are stacked horizontally or vertically
layout.updatemenus[]
Determines whether or not the update menu is visible.
layout.updatemenus[]
-0.05
Sets the x position (in normalized coordinates) of the update menu.
layout.updatemenus[]
"auto"
| "left"
| "center"
| "right"
) "right"
Sets the update menu's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the range selector.
layout.updatemenus[]
1
Sets the y position (in normalized coordinates) of the update menu.
layout.updatemenus[]
"auto"
| "top"
| "middle"
| "bottom"
) "top"
Sets the update menu's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the range selector.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4