plotly.graph_objects.layout.updatemenu package¶
-
class
plotly.graph_objects.layout.updatemenu.
Button
(arg=None, args=None, args2=None, execute=None, label=None, method=None, name=None, templateitemname=None, visible=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType
-
property
args
¶ - Sets the arguments values to be passed to the Plotly method set
in
method
on click.The ‘args’ property is an info array that may be specified as:
a list or tuple of up to 3 elements where:
The ‘args[0]’ property accepts values of any type
The ‘args[1]’ property accepts values of any type
The ‘args[2]’ property accepts values of any type
list
-
property
args2
¶ - 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.The ‘args2’ property is an info array that may be specified as:
a list or tuple of up to 3 elements where:
The ‘args2[0]’ property accepts values of any type
The ‘args2[1]’ property accepts values of any type
The ‘args2[2]’ property accepts values of any type
list
- Sets a 2nd set of
-
property
execute
¶ 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 ofmethod
andargs
.The ‘execute’ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
label
¶ Sets the text label to appear on the button.
- The ‘label’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
method
¶ 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.- The ‘method’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘restyle’, ‘relayout’, ‘animate’, ‘update’, ‘skip’]
- Returns
- Return type
Any
-
property
name
¶ 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 thisname
alongside your modifications (includingvisible: false
orenabled: false
to hide it). Has no effect outside of a template.- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
templateitemname
¶ 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 itsname
, alongside your modifications (includingvisible: false
orenabled: false
to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it withvisible: true
.- The ‘templateitemname’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.updatemenu.
Font
(arg=None, color=None, family=None, lineposition=None, shadow=None, size=None, style=None, textcase=None, variant=None, weight=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType
-
property
color
¶ - The ‘color’ property is a color and may be specified as:
A hex string (e.g. ‘#ff0000’)
An rgb/rgba string (e.g. ‘rgb(255,0,0)’)
An hsl/hsla string (e.g. ‘hsl(0,100%,50%)’)
An hsv/hsva string (e.g. ‘hsv(0,100%,100%)’)
- A named CSS color:
aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen
- Returns
- Return type
-
property
family
¶ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren’t available on the system. The Chart Studio Cloud (at https://chart- studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include “Arial”, “Balto”, “Courier New”, “Droid Sans”, “Droid Serif”, “Droid Sans Mono”, “Gravitas One”, “Old Standard TT”, “Open Sans”, “Overpass”, “PT Sans Narrow”, “Raleway”, “Times New Roman”.
- The ‘family’ property is a string and must be specified as:
A non-empty string
- Returns
- Return type
-
property
lineposition
¶ 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.
The ‘lineposition’ property is a flaglist and may be specified as a string containing:
Any combination of [‘under’, ‘over’, ‘through’] joined with ‘+’ characters (e.g. ‘under+over’) OR exactly one of [‘none’] (e.g. ‘none’)
- Returns
- Return type
Any
-
property
shadow
¶ 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.
- The ‘shadow’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
size
¶ - The ‘size’ property is a number and may be specified as:
An int or float in the interval [1, inf]
- Returns
- Return type
int|float
-
property
style
¶ Sets whether a font should be styled with a normal or italic face from its family.
- The ‘style’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘normal’, ‘italic’]
- Returns
- Return type
Any
-
property
textcase
¶ Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
- The ‘textcase’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘normal’, ‘word caps’, ‘upper’, ‘lower’]
- Returns
- Return type
Any
-
property
variant
¶ Sets the variant of the font.
- The ‘variant’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘normal’, ‘small-caps’, ‘all-small-caps’, ‘all-petite-caps’, ‘petite-caps’, ‘unicase’]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.updatemenu.
Pad
(arg=None, b=None, l=None, r=None, t=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType
-
property
b
¶ The amount of padding (in px) along the bottom of the component.
- The ‘b’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
l
¶ The amount of padding (in px) on the left side of the component.
- The ‘l’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
r
¶ The amount of padding (in px) on the right side of the component.
- The ‘r’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
t
¶ The amount of padding (in px) along the top of the component.
- The ‘t’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property