GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing plotly.com (truncated) — plotly.graph_objects.Layout — 7.1.0 documentation
|
plotly.graph_objects.layout.Activeselection(arg=None, fillcolor=None, opacity=None, **kwargs)¶fillcolor¶Sets the color filling the active selection’ interior.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
opacity¶Sets the opacity of the active selection.
An int or float in the interval [0, 1]
int|float
plotly.graph_objects.layout.Activeshape(arg=None, fillcolor=None, opacity=None, **kwargs)¶fillcolor¶Sets the color filling the active shape’ interior.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
opacity¶Sets the opacity of the active shape.
An int or float in the interval [0, 1]
int|float
plotly.graph_objects.layout.Annotation(arg=None, align=None, arrowcolor=None, arrowhead=None, arrowside=None, arrowsize=None, arrowwidth=None, ax=None, axref=None, ay=None, ayref=None, bgcolor=None, bordercolor=None, borderpad=None, borderwidth=None, captureevents=None, clicktoshow=None, font=None, height=None, hoverlabel=None, hovertext=None, name=None, opacity=None, showarrow=None, standoff=None, startarrowhead=None, startarrowsize=None, startstandoff=None, templateitemname=None, text=None, textangle=None, valign=None, visible=None, width=None, x=None, xanchor=None, xclick=None, xref=None, xshift=None, y=None, yanchor=None, yclick=None, yref=None, yshift=None, **kwargs)¶align¶Sets the horizontal alignment of the text within the box. Has
an effect only if text spans two or more lines (i.e. text
contains one or more <br> HTML tags) or if an explicit width is
set to override the text width.
[‘left’, ‘center’, ‘right’]
Any
arrowcolor¶Sets the color of the annotation arrow.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
arrowhead¶Sets the end annotation arrow head style.
An int (or float that will be cast to an int) in the interval [0, 8]
arrowside¶Sets the annotation arrow head position.
The ‘arrowside’ property is a flaglist and may be specified as a string containing:
Any combination of [‘end’, ‘start’] joined with ‘+’ characters (e.g. ‘end+start’) OR exactly one of [‘none’] (e.g. ‘none’)
Any
arrowsize¶Sets the size of the end annotation arrow head, relative to
arrowwidth. A value of 1 (default) gives a head about 3x as
wide as the line.
An int or float in the interval [0.3, inf]
int|float
arrowwidth¶Sets the width (in px) of annotation arrow line.
An int or float in the interval [0.1, inf]
int|float
ax¶Sets the x component of the arrow tail about the arrow head. If
axref is pixel, a positive (negative) component corresponds
to an arrow pointing from right to left (left to right). If
axref is not pixel and is exactly the same as xref, this
is an absolute value on that axis, like x, specified in the
same coordinates as xref.
The ‘ax’ property accepts values of any type
Any
axref¶Indicates in what coordinates the tail of the annotation
(ax,ay) is specified. If set to a x axis id (e.g. “x” or “x2”),
the x position refers to a x coordinate. If set to “paper”,
the x position refers to the distance from the left of the
plotting area in normalized coordinates where 0 (1) corresponds
to the left (right). If set to a x axis ID followed by “domain”
(separated by a space), the position behaves like for “paper”,
but refers to the distance in fractions of the domain length
from the left of the domain of that axis: e.g., x2 domain
refers to the domain of the second x axis and a x position of
0.5 refers to the point between the left and the right of the
domain of the second x axis. In order for absolute positioning
of the arrow to work, “axref” must be exactly the same as
“xref”, otherwise “axref” will revert to “pixel” (explained
next). For relative positioning, “axref” can be set to “pixel”,
in which case the “ax” value is specified in pixels relative to
“x”. Absolute positioning is useful for trendline annotations
which should continue to indicate the correct trend when
zoomed. Relative positioning is useful for specifying the text
offset for an annotated point.
[‘pixel’]
[‘^x([2-9]|[1-9][0-9]+)?( domain)?$’]
Any
ay¶Sets the y component of the arrow tail about the arrow head. If
ayref is pixel, a positive (negative) component corresponds
to an arrow pointing from bottom to top (top to bottom). If
ayref is not pixel and is exactly the same as yref, this
is an absolute value on that axis, like y, specified in the
same coordinates as yref.
The ‘ay’ property accepts values of any type
Any
ayref¶Indicates in what coordinates the tail of the annotation
(ax,ay) is specified. If set to a y axis id (e.g. “y” or “y2”),
the y position refers to a y coordinate. If set to “paper”,
the y position refers to the distance from the bottom of the
plotting area in normalized coordinates where 0 (1) corresponds
to the bottom (top). If set to a y axis ID followed by “domain”
(separated by a space), the position behaves like for “paper”,
but refers to the distance in fractions of the domain length
from the bottom of the domain of that axis: e.g., y2 domain
refers to the domain of the second y axis and a y position of
0.5 refers to the point between the bottom and the top of the
domain of the second y axis. In order for absolute positioning
of the arrow to work, “ayref” must be exactly the same as
“yref”, otherwise “ayref” will revert to “pixel” (explained
next). For relative positioning, “ayref” can be set to “pixel”,
in which case the “ay” value is specified in pixels relative to
“y”. Absolute positioning is useful for trendline annotations
which should continue to indicate the correct trend when
zoomed. Relative positioning is useful for specifying the text
offset for an annotated point.
[‘pixel’]
[‘^y([2-9]|[1-9][0-9]+)?( domain)?$’]
Any
bgcolor¶Sets the background color of the annotation.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
bordercolor¶Sets the color of the border enclosing the annotation text.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
borderpad¶Sets the padding (in px) between the text and the enclosing
border.
An int or float in the interval [0, inf]
int|float
borderwidth¶Sets the width (in px) of the border enclosing the annotation
text.
An int or float in the interval [0, inf]
int|float
captureevents¶Determines whether the annotation text box captures mouse move
and click events, or allows those events to pass through to
data points in the plot that may be behind the annotation. By
default captureevents is False unless hovertext is
provided. If you use the event plotly_clickannotation without
hovertext you must explicitly enable captureevents.
A boolean value: True or False
clicktoshow¶Makes this annotation respond to clicks on the plot. If you
click a data point that exactly matches the x and y values
of this annotation, and it is hidden (visible: false), it will
appear. In “onoff” mode, you must click the same point again to
make it disappear, so if you click multiple points, you can
show multiple annotations. In “onout” mode, a click anywhere
else in the plot (on another data point or not) will hide this
annotation. If you need to show/hide this annotation in
response to different x or y values, you can set xclick
and/or yclick. This is useful for example to label the side
of a bar. To label markers though, standoff is preferred over
xclick and yclick.
[False, ‘onoff’, ‘onout’]
Any
font¶Sets the annotation text font.
The ‘font’ property is an instance of Font that may be specified as:
An instance of
plotly.graph_objects.layout.annotation.FontA dict of string/value properties that will be passed to the Font constructor
height¶Sets an explicit height for the text box. null (default) lets the text set the box height. Taller text will be clipped.
An int or float in the interval [1, inf]
int|float
hoverlabel¶The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.layout.annotation.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
hovertext¶Sets text to appear when hovering over this annotation. If omitted or blank, no hover label will appear.
A string
A number that will be converted to a string
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 this
name alongside your modifications (including visible: false
or enabled: false to hide it). Has no effect outside of a
template.
A string
A number that will be converted to a string
opacity¶Sets the opacity of the annotation (text + arrow).
An int or float in the interval [0, 1]
int|float
showarrow¶Determines whether or not the annotation is drawn with an
arrow. If True, text is placed near the arrow’s tail. If
False, text lines up with the x and y provided.
A boolean value: True or False
standoff¶Sets a distance, in pixels, to move the end arrowhead away from
the position it is pointing at, for example to point at the
edge of a marker independent of zoom. Note that this shortens
the arrow from the ax / ay vector, in contrast to xshift
/ yshift which moves everything by this amount.
An int or float in the interval [0, inf]
int|float
startarrowhead¶Sets the start annotation arrow head style.
An int (or float that will be cast to an int) in the interval [0, 8]
startarrowsize¶Sets the size of the start annotation arrow head, relative to
arrowwidth. A value of 1 (default) gives a head about 3x as
wide as the line.
An int or float in the interval [0.3, inf]
int|float
startstandoff¶Sets a distance, in pixels, to move the start arrowhead away
from the position it is pointing at, for example to point at
the edge of a marker independent of zoom. Note that this
shortens the arrow from the ax / ay vector, in contrast to
xshift / yshift which moves everything by this amount.
An int or float in the interval [0, inf]
int|float
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 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.
A string
A number that will be converted to a string
text¶Sets the text associated with this annotation. Plotly uses a
subset of HTML tags to do things like newline (<br>), bold
(<b></b>), italics (<i></i>), hyperlinks (<a
href='...'></a>). Tags <em>, <sup>, <sub>, <s>, <u>,
and <span> are also supported.
A string
A number that will be converted to a string
textangle¶Sets the angle at which the text is drawn with respect to the
horizontal.
The ‘textangle’ property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this range are converted to the equivalent value (e.g. 270 is converted to -90).
int|float
valign¶Sets the vertical alignment of the text within the box. Has
an effect only if an explicit height is set to override the
text height.
[‘top’, ‘middle’, ‘bottom’]
Any
visible¶Determines whether or not this annotation is visible.
A boolean value: True or False
width¶Sets an explicit width for the text box. null (default) lets the text set the box width. Wider text will be clipped. There is no automatic wrapping; use <br> to start a new line.
An int or float in the interval [1, inf]
int|float
x¶Sets the annotation’s x position. If the axis type is “log”,
then you must take the log of your desired range. If the axis
type is “date”, it should be date strings, like date data,
though Date objects and unix milliseconds will be accepted and
converted to strings. If the axis type is “category”, it
should be numbers, using the scale where each category is
assigned a serial number from zero in the order it appears.
The ‘x’ property accepts values of any type
Any
xanchor¶Sets the text box’s horizontal position anchor This anchor
binds the x position to the “left”, “center” or “right” of
the annotation. For example, if x is set to 1, xref to
“paper” and xanchor to “right” then the right-most portion of
the annotation lines up with the right-most edge of the
plotting area. If “auto”, the anchor is equivalent to “center”
for data-referenced annotations or if there is an arrow,
whereas for paper-referenced with no arrow, the anchor picked
corresponds to the closest side.
[‘auto’, ‘left’, ‘center’, ‘right’]
Any
xclick¶Toggle this annotation when clicking a data point whose x
value is xclick rather than the annotation’s x value.
The ‘xclick’ property accepts values of any type
Any
xref¶Sets the annotation’s x coordinate axis. If set to a x axis id
(e.g. “x” or “x2”), the x position refers to a x coordinate.
If set to “paper”, the x position refers to the distance from
the left of the plotting area in normalized coordinates where 0
(1) corresponds to the left (right). If set to a x axis ID
followed by “domain” (separated by a space), the position
behaves like for “paper”, but refers to the distance in
fractions of the domain length from the left of the domain of
that axis: e.g., x2 domain refers to the domain of the second
x axis and a x position of 0.5 refers to the point between the
left and the right of the domain of the second x axis.
[‘paper’]
[‘^x([2-9]|[1-9][0-9]+)?( domain)?$’]
Any
xshift¶Shifts the position of the whole annotation and arrow to the right (positive) or left (negative) by this many pixels.
An int or float
int|float
y¶Sets the annotation’s y position. If the axis type is “log”,
then you must take the log of your desired range. If the axis
type is “date”, it should be date strings, like date data,
though Date objects and unix milliseconds will be accepted and
converted to strings. If the axis type is “category”, it
should be numbers, using the scale where each category is
assigned a serial number from zero in the order it appears.
The ‘y’ property accepts values of any type
Any
yanchor¶Sets the text box’s vertical position anchor This anchor binds
the y position to the “top”, “middle” or “bottom” of the
annotation. For example, if y is set to 1, yref to “paper”
and yanchor to “top” then the top-most portion of the
annotation lines up with the top-most edge of the plotting
area. If “auto”, the anchor is equivalent to “middle” for data-
referenced annotations or if there is an arrow, whereas for
paper-referenced with no arrow, the anchor picked corresponds
to the closest side.
[‘auto’, ‘top’, ‘middle’, ‘bottom’]
Any
yclick¶Toggle this annotation when clicking a data point whose y
value is yclick rather than the annotation’s y value.
The ‘yclick’ property accepts values of any type
Any
yref¶Sets the annotation’s y coordinate axis. If set to a y axis id
(e.g. “y” or “y2”), the y position refers to a y coordinate.
If set to “paper”, the y position refers to the distance from
the bottom of the plotting area in normalized coordinates where
0 (1) corresponds to the bottom (top). If set to a y axis ID
followed by “domain” (separated by a space), the position
behaves like for “paper”, but refers to the distance in
fractions of the domain length from the bottom of the domain of
that axis: e.g., y2 domain refers to the domain of the second
y axis and a y position of 0.5 refers to the point between the
bottom and the top of the domain of the second y axis.
[‘paper’]
[‘^y([2-9]|[1-9][0-9]+)?( domain)?$’]
Any
yshift¶Shifts the position of the whole annotation and arrow up (positive) or down (negative) by this many pixels.
An int or float
int|float
plotly.graph_objects.layout.Coloraxis(arg=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, colorbar=None, colorscale=None, reversescale=None, showscale=None, **kwargs)¶autocolorscale¶Determines whether the colorscale is a default palette
(autocolorscale: true) or the palette determined by
colorscale. In case colorscale is unspecified or
autocolorscale is true, the default palette will be chosen
according to whether numbers in the color array are all
positive, all negative or mixed.
A boolean value: True or False
cauto¶Determines whether or not the color domain is computed with
respect to the input data (here corresponding trace color
array(s)) or the bounds set in cmin and cmax Defaults to
false when cmin and cmax are set by the user.
A boolean value: True or False
cmax¶Sets the upper bound of the color domain. Value should have the
same units as corresponding trace color array(s) and if set,
cmin must be set as well.
An int or float
int|float
cmid¶Sets the mid-point of the color domain by scaling cmin and/or
cmax to be equidistant to this point. Value should have the
same units as corresponding trace color array(s). Has no effect
when cauto is false.
An int or float
int|float
cmin¶Sets the lower bound of the color domain. Value should have the
same units as corresponding trace color array(s) and if set,
cmax must be set as well.
An int or float
int|float
colorbar¶The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.layout.coloraxis.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
colorscale¶Sets the colorscale. The colorscale must be an array containing
arrays mapping a normalized value to an rgb, rgba, hex, hsl,
hsla, hwb, or named color string. At minimum, a mapping for the
lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the
bounds of the colorscale in color space, use cmin and cmax.
Alternatively, colorscale may be a palette name string of the
following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,
Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,
YlGnBu,YlOrRd.
The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
reversescale¶Reverses the color mapping if true. If true, cmin will
correspond to the last color in the array and cmax will
correspond to the first color.
A boolean value: True or False
plotly.graph_objects.layout.Colorscale(arg=None, diverging=None, sequential=None, sequentialminus=None, **kwargs)¶diverging¶Sets the default diverging colorscale. Note that
autocolorscale must be true for this attribute to work.
The ‘diverging’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
sequential¶Sets the default sequential colorscale for positive values.
Note that autocolorscale must be true for this attribute to
work.
The ‘sequential’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
sequentialminus¶Sets the default sequential colorscale for negative values.
Note that autocolorscale must be true for this attribute to
work.
The ‘sequentialminus’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
plotly.graph_objects.layout.Font(arg=None, color=None, family=None, lineposition=None, shadow=None, size=None, style=None, textcase=None, variant=None, weight=None, **kwargs)¶color¶hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
family¶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.
A non-empty string
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’)
Any
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.
A string
A number that will be converted to a string
size¶An int or float in the interval [1, inf]
int|float
style¶Sets whether a font should be styled with a normal or italic face from its family.
[‘normal’, ‘italic’]
Any
textcase¶Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
[‘normal’, ‘word caps’, ‘upper’, ‘lower’]
Any
variant¶Sets the variant of the font.
[‘normal’, ‘small-caps’, ‘all-small-caps’, ‘all-petite-caps’, ‘petite-caps’, ‘unicase’]
Any
plotly.graph_objects.layout.Geo(arg=None, bgcolor=None, center=None, coastlinecolor=None, coastlinewidth=None, countrycolor=None, countrywidth=None, domain=None, fitbounds=None, framecolor=None, framewidth=None, lakecolor=None, landcolor=None, lataxis=None, lonaxis=None, oceancolor=None, projection=None, resolution=None, rivercolor=None, riverwidth=None, scope=None, showcoastlines=None, showcountries=None, showframe=None, showlakes=None, showland=None, showocean=None, showrivers=None, showsubunits=None, subunitcolor=None, subunitwidth=None, uirevision=None, visible=None, **kwargs)¶bgcolor¶Set the background color of the map
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
center¶The ‘center’ property is an instance of Center that may be specified as:
An instance of
plotly.graph_objects.layout.geo.CenterA dict of string/value properties that will be passed to the Center constructor
coastlinecolor¶Sets the coastline color.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
coastlinewidth¶Sets the coastline stroke width (in px).
An int or float in the interval [0, inf]
int|float
countrycolor¶Sets line color of the country boundaries.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
countrywidth¶Sets line width (in px) of the country boundaries.
An int or float in the interval [0, inf]
int|float
domain¶The ‘domain’ property is an instance of Domain that may be specified as:
An instance of
plotly.graph_objects.layout.geo.DomainA dict of string/value properties that will be passed to the Domain constructor
fitbounds¶Determines if this subplot’s view settings are auto-computed to
fit trace data. On scoped maps, setting fitbounds leads to
center.lon and center.lat getting auto-filled. On maps with
a non-clipped projection, setting fitbounds leads to
center.lon, center.lat, and projection.rotation.lon
getting auto-filled. On maps with a clipped projection, setting
fitbounds leads to center.lon, center.lat,
projection.rotation.lon, projection.rotation.lat,
lonaxis.range and lataxis.range getting auto-filled. If
“locations” (default), only the trace’s visible locations are
considered in the fitbounds computations. If “geojson”, the
entire trace input geojson (if provided) is considered in the
fitbounds computations. If False, the view settings are used
as-is; set this to opt out of auto-fitting.
[False, ‘locations’, ‘geojson’]
Any
framecolor¶Sets the color the frame.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
framewidth¶Sets the stroke width (in px) of the frame.
An int or float in the interval [0, inf]
int|float
lakecolor¶Sets the color of the lakes.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
landcolor¶Sets the land mass color.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
lataxis¶The ‘lataxis’ property is an instance of Lataxis that may be specified as:
An instance of
plotly.graph_objects.layout.geo.LataxisA dict of string/value properties that will be passed to the Lataxis constructor
lonaxis¶The ‘lonaxis’ property is an instance of Lonaxis that may be specified as:
An instance of
plotly.graph_objects.layout.geo.LonaxisA dict of string/value properties that will be passed to the Lonaxis constructor
oceancolor¶Sets the ocean color
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
projection¶The ‘projection’ property is an instance of Projection that may be specified as:
An instance of
plotly.graph_objects.layout.geo.ProjectionA dict of string/value properties that will be passed to the Projection constructor
resolution¶Sets the resolution of the base layers. The values have units of km/mm e.g. 110 corresponds to a scale ratio of 1:110,000,000.
[110, 50]
Any
rivercolor¶Sets color of the rivers.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
riverwidth¶Sets the stroke width (in px) of the rivers.
An int or float in the interval [0, inf]
int|float
scope¶Set the scope of the map.
[‘africa’, ‘antarctica’, ‘asia’, ‘europe’, ‘north america’, ‘oceania’, ‘south america’, ‘usa’, ‘world’]
Any
showcoastlines¶Sets whether or not the coastlines are drawn.
A boolean value: True or False
showcountries¶Sets whether or not country boundaries are drawn.
A boolean value: True or False
showframe¶Sets whether or not a frame is drawn around the map.
A boolean value: True or False
showlakes¶Sets whether or not lakes are drawn.
A boolean value: True or False
showland¶Sets whether or not land masses are filled in color.
A boolean value: True or False
showocean¶Sets whether or not oceans are filled in color.
A boolean value: True or False
showrivers¶Sets whether or not rivers are drawn.
A boolean value: True or False
showsubunits¶Sets whether or not boundaries of subunits within countries (e.g. states, provinces) are drawn.
A boolean value: True or False
subunitcolor¶Sets the color of the subunits boundaries.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
subunitwidth¶Sets the stroke width (in px) of the subunits boundaries.
An int or float in the interval [0, inf]
int|float
uirevision¶Controls persistence of user-driven changes in the view
(projection and center). Defaults to layout.uirevision.
The ‘uirevision’ property accepts values of any type
Any
plotly.graph_objects.layout.Grid(arg=None, columns=None, domain=None, pattern=None, roworder=None, rows=None, subplots=None, xaxes=None, xgap=None, xside=None, yaxes=None, ygap=None, yside=None, **kwargs)¶columns¶The number of columns in the grid. If you provide a 2D
subplots array, the length of its longest row is used as the
default. If you give an xaxes array, its length is used as
the default. But it’s also possible to have a different length,
if you want to leave a row at the end for non-cartesian
subplots.
An int (or float that will be cast to an int) in the interval [1, 9223372036854775807]
domain¶The ‘domain’ property is an instance of Domain that may be specified as:
An instance of
plotly.graph_objects.layout.grid.DomainA dict of string/value properties that will be passed to the Domain constructor
pattern¶If no subplots, xaxes, or yaxes are given but we do have
rows and columns, we can generate defaults using
consecutive axis IDs, in two ways: “coupled” gives one x axis
per column and one y axis per row. “independent” uses a new xy
pair for each cell, left-to-right across each row then
iterating rows according to roworder.
[‘independent’, ‘coupled’]
Any
roworder¶Is the first row the top or the bottom? Note that columns are always enumerated from left to right.
[‘top to bottom’, ‘bottom to top’]
Any
rows¶The number of rows in the grid. If you provide a 2D subplots
array or a yaxes array, its length is used as the default.
But it’s also possible to have a different length, if you want
to leave a row at the end for non-cartesian subplots.
An int (or float that will be cast to an int) in the interval [1, 9223372036854775807]
subplots¶Used for freeform grids, where some axes may be shared across
subplots but others are not. Each entry should be a cartesian
subplot id, like “xy” or “x3y2”, or “” to leave that cell
empty. You may reuse x axes within the same column, and y axes
within the same row. Non-cartesian subplots and traces that
support domain can place themselves in this grid separately
using the gridcell attribute.
The ‘subplots’ property is an info array that may be specified as: * a 2D list where:
The ‘subplots[i][j]’ property is an enumeration that may be specified as: - One of the following enumeration values:
[‘’]
- A string that matches one of the following regular expressions:
[‘^x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?$’]
xaxes¶Used with yaxes when the x and y axes are shared across
columns and rows. Each entry should be an x axis id like “x”,
“x2”, etc., or “” to not put an x axis in that column. Entries
other than “” must be unique. Ignored if subplots is present.
If missing but yaxes is present, will generate consecutive
IDs.
The ‘xaxes’ property is an info array that may be specified as: * a list of elements where:
The ‘xaxes[i]’ property is an enumeration that may be specified as: - One of the following enumeration values:
[‘’]
- A string that matches one of the following regular expressions:
[‘^x([2-9]|[1-9][0-9]+)?( domain)?$’]
xgap¶Horizontal space between grid cells, expressed as a fraction of the total width available to one cell. Defaults to 0.1 for coupled-axes grids and 0.2 for independent grids.
An int or float in the interval [0, 1]
int|float
xside¶Sets where the x axis labels and titles go. “bottom” means the very bottom of the grid. “bottom plot” is the lowest plot that each x axis is used in. “top” and “top plot” are similar.
[‘bottom’, ‘bottom plot’, ‘top plot’, ‘top’]
Any
yaxes¶Used with yaxes when the x and y axes are shared across
columns and rows. Each entry should be an y axis id like “y”,
“y2”, etc., or “” to not put a y axis in that row. Entries
other than “” must be unique. Ignored if subplots is present.
If missing but xaxes is present, will generate consecutive
IDs.
The ‘yaxes’ property is an info array that may be specified as: * a list of elements where:
The ‘yaxes[i]’ property is an enumeration that may be specified as: - One of the following enumeration values:
[‘’]
- A string that matches one of the following regular expressions:
[‘^y([2-9]|[1-9][0-9]+)?( domain)?$’]
ygap¶Vertical space between grid cells, expressed as a fraction of the total height available to one cell. Defaults to 0.1 for coupled-axes grids and 0.3 for independent grids.
An int or float in the interval [0, 1]
int|float
yside¶Sets where the y axis labels and titles go. “left” means the very left edge of the grid. left plot is the leftmost plot that each y axis is used in. “right” and right plot are similar.
[‘left’, ‘left plot’, ‘right plot’, ‘right’]
Any
plotly.graph_objects.layout.Hoverlabel(arg=None, align=None, bgcolor=None, bordercolor=None, font=None, grouptitlefont=None, namelength=None, showarrow=None, **kwargs)¶align¶Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines
[‘left’, ‘right’, ‘auto’]
Any
bgcolor¶Sets the background color of all hover labels on graph
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
bordercolor¶Sets the border color of all hover labels on graph.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
font¶Sets the default hover label font used by all traces on the graph.
The ‘font’ property is an instance of Font that may be specified as:
An instance of
plotly.graph_objects.layout.hoverlabel.FontA dict of string/value properties that will be passed to the Font constructor
grouptitlefont¶Sets the font for group titles in hover (unified modes).
Defaults to hoverlabel.font.
The ‘grouptitlefont’ property is an instance of Grouptitlefont that may be specified as:
An instance of
plotly.graph_objects.layout.hoverlabel.GrouptitlefontA dict of string/value properties that will be passed to the Grouptitlefont constructor
namelength¶Sets the default length (in number of characters) of the trace
name in the hover labels for all traces. -1 shows the whole
name regardless of length. 0-3 shows the first 0-3 characters,
and an integer >3 will show the whole name if it is less than
that many characters, but if it is longer, will truncate to
namelength - 3 characters and add an ellipsis.
An int (or float that will be cast to an int) in the interval [-1, 9223372036854775807]
plotly.graph_objects.layout.Image(arg=None, layer=None, name=None, opacity=None, sizex=None, sizey=None, sizing=None, source=None, templateitemname=None, visible=None, x=None, xanchor=None, xref=None, y=None, yanchor=None, yref=None, **kwargs)¶layer¶Specifies whether images are drawn below or above traces. When
xref and yref are both set to paper, image is drawn below
the entire plot area.
[‘below’, ‘above’]
Any
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 this
name alongside your modifications (including visible: false
or enabled: false to hide it). Has no effect outside of a
template.
A string
A number that will be converted to a string
opacity¶Sets the opacity of the image.
An int or float in the interval [0, 1]
int|float
sizex¶Sets the image container size horizontally. The image will be
sized based on the position value. When xref is set to
paper, units are sized relative to the plot width. When
xref ends with ` domain`, units are sized relative to the
axis width.
An int or float
int|float
sizey¶Sets the image container size vertically. The image will be
sized based on the position value. When yref is set to
paper, units are sized relative to the plot height. When
yref ends with ` domain`, units are sized relative to the
axis height.
An int or float
int|float
sizing¶Specifies which dimension of the image to constrain.
[‘fill’, ‘contain’, ‘stretch’]
Any
source¶Specifies the URL of the image to be used. The URL must be accessible from the domain where the plot code is run, and can be either relative or absolute.
A remote image URI string (e.g. ‘http://www.somewhere.com/image.png’)
A data URI image string (e.g. ‘data:image/png;base64,iVBORw0KGgoAAAANSU’)
A PIL.Image.Image object which will be immediately converted to a data URI image string See http://pillow.readthedocs.io/en/latest/reference/Image.html
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 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.
A string
A number that will be converted to a string
visible¶Determines whether or not this image is visible.
A boolean value: True or False
x¶Sets the image’s x position. When xref is set to paper,
units are sized relative to the plot height. See xref for
more info
The ‘x’ property accepts values of any type
Any
xanchor¶Sets the anchor for the x position
[‘left’, ‘center’, ‘right’]
Any
xref¶Sets the images’s x coordinate axis. If set to a x axis id
(e.g. “x” or “x2”), the x position refers to a x coordinate.
If set to “paper”, the x position refers to the distance from
the left of the plotting area in normalized coordinates where 0
(1) corresponds to the left (right). If set to a x axis ID
followed by “domain” (separated by a space), the position
behaves like for “paper”, but refers to the distance in
fractions of the domain length from the left of the domain of
that axis: e.g., x2 domain refers to the domain of the second
x axis and a x position of 0.5 refers to the point between the
left and the right of the domain of the second x axis.
[‘paper’]
[‘^x([2-9]|[1-9][0-9]+)?( domain)?$’]
Any
y¶Sets the image’s y position. When yref is set to paper,
units are sized relative to the plot height. See yref for
more info
The ‘y’ property accepts values of any type
Any
yanchor¶Sets the anchor for the y position.
[‘top’, ‘middle’, ‘bottom’]
Any
yref¶Sets the images’s y coordinate axis. If set to a y axis id
(e.g. “y” or “y2”), the y position refers to a y coordinate.
If set to “paper”, the y position refers to the distance from
the bottom of the plotting area in normalized coordinates where
0 (1) corresponds to the bottom (top). If set to a y axis ID
followed by “domain” (separated by a space), the position
behaves like for “paper”, but refers to the distance in
fractions of the domain length from the bottom of the domain of
that axis: e.g., y2 domain refers to the domain of the second
y axis and a y position of 0.5 refers to the point between the
bottom and the top of the domain of the second y axis.
[‘paper’]
[‘^y([2-9]|[1-9][0-9]+)?( domain)?$’]
Any
plotly.graph_objects.layout.Legend(arg=None, bgcolor=None, bordercolor=None, borderwidth=None, entrywidth=None, entrywidthmode=None, font=None, groupclick=None, groupdoubleclick=None, grouptitlefont=None, indentation=None, itemclick=None, itemdoubleclick=None, itemsizing=None, itemwidth=None, maxheight=None, orientation=None, title=None, titleclick=None, titledoubleclick=None, tracegroupgap=None, traceorder=None, uirevision=None, valign=None, visible=None, x=None, xanchor=None, xref=None, y=None, yanchor=None, yref=None, **kwargs)¶bgcolor¶Sets the legend background color. Defaults to
layout.paper_bgcolor.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
bordercolor¶Sets the color of the border enclosing the legend.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
borderwidth¶Sets the width (in px) of the border enclosing the legend.
An int or float in the interval [0, inf]
int|float
entrywidth¶Sets the width (in px or fraction) of the legend. Use 0 to size
the entry based on the text width, when entrywidthmode is set
to “pixels”.
An int or float in the interval [0, inf]
int|float
entrywidthmode¶Determines what entrywidth means.
[‘fraction’, ‘pixels’]
Any
font¶Sets the font used to text the legend items.
The ‘font’ property is an instance of Font that may be specified as:
An instance of
plotly.graph_objects.layout.legend.FontA dict of string/value properties that will be passed to the Font constructor
groupclick¶Determines the behavior on legend group item click. “toggleitem” toggles the visibility of the individual item clicked on the graph. “togglegroup” toggles the visibility of all items in the same legendgroup as the item clicked on the graph.
[‘toggleitem’, ‘togglegroup’]
Any
groupdoubleclick¶Determines the behavior on legend group item double-click.
“toggleitem” toggles the visibility of the individual item
clicked on the graph. “togglegroup” toggles the visibility of
all items in the same legendgroup as the item clicked on the
graph. Defaults to the value of groupclick.
[‘toggleitem’, ‘togglegroup’]
Any
grouptitlefont¶Sets the font for group titles in legend. Defaults to
legend.font with its size increased about 10%.
The ‘grouptitlefont’ property is an instance of Grouptitlefont that may be specified as:
An instance of
plotly.graph_objects.layout.legend.GrouptitlefontA dict of string/value properties that will be passed to the Grouptitlefont constructor
indentation¶Sets the indentation (in px) of the legend entries.
An int or float in the interval [-15, inf]
int|float
itemclick¶Determines the behavior on legend item click. “toggle” toggles the visibility of the item clicked on the graph. “toggleothers” makes the clicked item the sole visible item on the graph. False disables legend item click interactions.
[‘toggle’, ‘toggleothers’, False]
Any
itemdoubleclick¶Determines the behavior on legend item double-click. “toggle” toggles the visibility of the item clicked on the graph. “toggleothers” makes the clicked item the sole visible item on the graph. False disables legend item double-click interactions.
[‘toggle’, ‘toggleothers’, False]
Any
itemsizing¶Determines if the legend items symbols scale with their corresponding “trace” attributes or remain “constant” independent of the symbol size on the graph.
[‘trace’, ‘constant’]
Any
itemwidth¶Sets the width (in px) of the legend item symbols (the part other than the title.text).
An int or float in the interval [30, inf]
int|float
maxheight¶Sets the max height (in px) of the legend, or max height ratio
(reference height * ratio) if less than or equal to 1. Default
value is: 0.5 for horizontal legends; 1 for vertical legends.
The minimum allowed height is 30px. For a ratio of 0.5, the
legend will take up to 50% of the reference height before
displaying a scrollbar. The reference height is the full layout
height with the following exception: vertically oriented
legends with a yref of `”paper”, located to the side of the
plot. In this case, the reference height is the plot height.
An int or float in the interval [0, inf]
int|float
orientation¶Sets the orientation of the legend.
[‘v’, ‘h’]
Any
title¶The ‘title’ property is an instance of Title that may be specified as:
An instance of
plotly.graph_objects.layout.legend.TitleA dict of string/value properties that will be passed to the Title constructor
titleclick¶Determines the behavior on legend title click. “toggle” toggles the visibility of all items in the legend. “toggleothers” toggles the visibility of all other legends. False disables legend title click interactions. Defaults to “toggle” when there are multiple legends, False otherwise. Not supported for legends containing pie and pie-like traces.
[‘toggle’, ‘toggleothers’, False]
Any
titledoubleclick¶Determines the behavior on legend title double-click. “toggle” toggles the visibility of all items in the legend. “toggleothers” toggles the visibility of all other legends. False disables legend title double-click interactions. Defaults to “toggleothers” when there are multiple legends, False otherwise. Not supported for legends containing pie and pie- like traces.
[‘toggle’, ‘toggleothers’, False]
Any
tracegroupgap¶Sets the amount of vertical space (in px) between legend groups.
An int or float in the interval [0, inf]
int|float
traceorder¶Determines the order at which the legend items are displayed.
If “normal”, the items are displayed top-to-bottom in the same
order as the input data. If “reversed”, the items are displayed
in the opposite order as “normal”. If “grouped”, the items are
displayed in groups (when a trace legendgroup is provided).
if “grouped+reversed”, the items are displayed in the opposite
order as “grouped”.
The ‘traceorder’ property is a flaglist and may be specified as a string containing:
Any combination of [‘reversed’, ‘grouped’] joined with ‘+’ characters (e.g. ‘reversed+grouped’) OR exactly one of [‘normal’] (e.g. ‘normal’)
Any
uirevision¶Controls persistence of legend-driven changes in trace and pie
label visibility. Defaults to layout.uirevision.
The ‘uirevision’ property accepts values of any type
Any
valign¶Sets the vertical alignment of the symbols with respect to their associated text.
[‘top’, ‘middle’, ‘bottom’]
Any
visible¶Determines whether or not this legend is visible.
A boolean value: True or False
x¶Sets the x position with respect to xref (in normalized
coordinates) of the legend. When xref is “paper”, defaults to
1.02 for vertical legends and defaults to 0 for horizontal
legends. When xref is “container”, defaults to 1 for vertical
legends and defaults to 0 for horizontal legends. Must be
between 0 and 1 if xref is “container”. and between “-2” and
3 if xref is “paper”.
An int or float
int|float
xanchor¶Sets the legend’s horizontal position anchor. This anchor binds
the x position to the “left”, “center” or “right” of the
legend. Value “auto” anchors legends to the right for x
values greater than or equal to 2/3, anchors legends to the
left for x values less than or equal to 1/3 and anchors
legends with respect to their center otherwise.
[‘auto’, ‘left’, ‘center’, ‘right’]
Any
xref¶Sets the container x refers to. “container” spans the entire
width of the plot. “paper” refers to the width of the
plotting area only.
[‘container’, ‘paper’]
Any
y¶Sets the y position with respect to yref (in normalized
coordinates) of the legend. When yref is “paper”, defaults to
1 for vertical legends, defaults to “-0.1” for horizontal
legends on graphs w/o range sliders and defaults to 1.1 for
horizontal legends on graph with one or multiple range sliders.
When yref is “container”, defaults to 1. Must be between 0
and 1 if yref is “container” and between “-2” and 3 if yref
is “paper”.
An int or float
int|float
yanchor¶Sets the legend’s vertical position anchor. This anchor binds
the y position to the “top”, “middle” or “bottom” of the
legend. Value “auto” anchors legends at their bottom for y
values less than or equal to 1/3, anchors legends to at their
top for y values greater than or equal to 2/3 and anchors
legends with respect to their middle otherwise.
[‘auto’, ‘top’, ‘middle’, ‘bottom’]
Any
yref¶Sets the container y refers to. “container” spans the entire
height of the plot. “paper” refers to the height of the
plotting area only.
[‘container’, ‘paper’]
Any
plotly.graph_objects.layout.Map(arg=None, bearing=None, bounds=None, center=None, domain=None, fitbounds=None, layers=None, layerdefaults=None, pitch=None, style=None, uirevision=None, zoom=None, **kwargs)¶bearing¶Sets the bearing angle of the map in degrees counter-clockwise from North (map.bearing).
An int or float
int|float
bounds¶The ‘bounds’ property is an instance of Bounds that may be specified as:
An instance of
plotly.graph_objects.layout.map.BoundsA dict of string/value properties that will be passed to the Bounds constructor
center¶The ‘center’ property is an instance of Center that may be specified as:
An instance of
plotly.graph_objects.layout.map.CenterA dict of string/value properties that will be passed to the Center constructor
domain¶The ‘domain’ property is an instance of Domain that may be specified as:
An instance of
plotly.graph_objects.layout.map.DomainA dict of string/value properties that will be passed to the Domain constructor
fitbounds¶Determines if this subplot’s view settings are auto-computed to
fit trace data. If “locations” (default), the view is auto-fit
to the lon/lat coordinates of the visible trace data. If False,
the view settings are used as-is; set this to opt out of auto-
fitting. If fitbounds is enabled but a user provides center
or zoom, auto-fit will be skipped.
[False, ‘locations’]
Any
layerdefaults¶When used in a template (as layout.template.layout.map.layerdefaults), sets the default property values to use for elements of layout.map.layers
The ‘layerdefaults’ property is an instance of Layer that may be specified as:
An instance of
plotly.graph_objects.layout.map.LayerA dict of string/value properties that will be passed to the Layer constructor
layers¶The ‘layers’ property is a tuple of instances of Layer that may be specified as:
A list or tuple of instances of plotly.graph_objects.layout.map.Layer
A list or tuple of dicts of string/value properties that will be passed to the Layer constructor
pitch¶Sets the pitch angle of the map (in degrees, where 0 means perpendicular to the surface of the map) (map.pitch).
An int or float
int|float
style¶Defines the map layers that are rendered by default below the
trace layers defined in data, which are themselves by default
rendered below the layers defined in layout.map.layers.
These layers can be defined either explicitly as a Map Style
object which can contain multiple layer definitions that load
data from any public or private Tile Map Service (TMS or XYZ)
or Web Map Service (WMS) or implicitly by using one of the
built-in style objects which use WMSes or by using a custom
style URL Map Style objects are of the form described in the
MapLibre GL JS documentation available at
https://maplibre.org/maplibre-style-spec/ The built-in
plotly.js styles objects are: basic, carto-darkmatter, carto-
darkmatter-nolabels, carto-positron, carto-positron-nolabels,
carto-voyager, carto-voyager-nolabels, dark, light, open-
street-map, outdoors, satellite, satellite-streets, streets,
white-bg.
The ‘style’ property accepts values of any type
Any
uirevision¶Controls persistence of user-driven changes in the view:
center, zoom, bearing, pitch. Defaults to
layout.uirevision.
The ‘uirevision’ property accepts values of any type
Any
zoom¶Sets the zoom level of the map (map.zoom).
An int or float
int|float
plotly.graph_objects.layout.Margin(arg=None, autoexpand=None, b=None, l=None, pad=None, r=None, t=None, **kwargs)¶autoexpand¶Turns on/off margin expansion computations. Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider are allowed to push the margins by defaults.
A boolean value: True or False
b¶Sets the bottom margin (in px).
An int or float in the interval [0, inf]
int|float
l¶Sets the left margin (in px).
An int or float in the interval [0, inf]
int|float
pad¶Sets the amount of padding (in px) between the plotting area and the axis lines
An int or float in the interval [0, inf]
int|float
r¶Sets the right margin (in px).
An int or float in the interval [0, inf]
int|float
t¶Sets the top margin (in px).
An int or float in the interval [0, inf]
int|float
plotly.graph_objects.layout.Modebar(arg=None, activecolor=None, add=None, bgcolor=None, color=None, orientation=None, remove=None, uirevision=None, **kwargs)¶activecolor¶Sets the color of the active or hovered on icons in the modebar.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
add¶Determines which predefined modebar buttons to add. Please note
that these buttons will only be shown if they are compatible
with all trace types used in a graph. Similar to
config.modeBarButtonsToAdd option. This may include
“v1hovermode”, “hoverclosest”, “hovercompare”, “togglehover”,
“togglespikelines”, “drawline”, “drawopenpath”,
“drawclosedpath”, “drawcircle”, “drawrect”, “eraseshape”,
“downloadJson”.
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
str|numpy.ndarray
bgcolor¶Sets the background color of the modebar.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
color¶Sets the color of the icons in the modebar.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
orientation¶Sets the orientation of the modebar.
[‘v’, ‘h’]
Any
remove¶Determines which predefined modebar buttons to remove. Similar
to config.modeBarButtonsToRemove option. This may include
“autoScale2d”, “autoscale”, “hoverCompareCartesian”,
“hovercompare”, “lasso”, “lasso2d”, “orbitRotation”,
“orbitrotation”, “pan”, “pan2d”, “pan3d”, “reset”,
“resetCameraDefault3d”, “resetCameraLastSave3d”, “resetGeo”,
“resetSankeyGroup”, “resetScale2d”, “resetViewMap”,
“resetViews”, “resetcameradefault”, “resetcameralastsave”,
“resetsankeygroup”, “resetscale”, “resetview”, “resetviews”,
“select”, “select2d”, “sendChartToCloud”, “sendcharttocloud”,
“tableRotation”, “tablerotation”, “toImage”, “toggleHover”,
“toggleSpikelines”, “togglehover”, “togglespikelines”,
“toimage”, “zoom”, “zoom2d”, “zoom3d”, “zoomIn2d”, “zoomInGeo”,
“zoomInMap”, “zoomOut2d”, “zoomOutGeo”, “zoomOutMap”, “zoomin”,
“zoomout”.
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
str|numpy.ndarray
uirevision¶Controls persistence of user-driven changes related to the
modebar, including hovermode, dragmode, and showspikes at
both the root level and inside subplots. Defaults to
layout.uirevision.
The ‘uirevision’ property accepts values of any type
Any
plotly.graph_objects.layout.Newselection(arg=None, line=None, mode=None, **kwargs)¶line¶The ‘line’ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.layout.newselection.LineA dict of string/value properties that will be passed to the Line constructor
mode¶Describes how a new selection is created. If immediate, a new
selection is created after first mouse up. If gradual, a new
selection is not created after first mouse. By adding to and
subtracting from the initial selection, this option allows
declaring extra outlines of the selection.
[‘immediate’, ‘gradual’]
Any
plotly.graph_objects.layout.Newshape(arg=None, drawdirection=None, fillcolor=None, fillrule=None, label=None, layer=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, line=None, name=None, opacity=None, showlegend=None, visible=None, **kwargs)¶drawdirection¶When dragmode is set to “drawrect”, “drawline” or
“drawcircle” this limits the drag to be horizontal, vertical or
diagonal. Using “diagonal” there is no limit e.g. in drawing
lines in any direction. “ortho” limits the draw to be either
horizontal or vertical. “horizontal” allows horizontal extend.
“vertical” allows vertical extend.
[‘ortho’, ‘horizontal’, ‘vertical’, ‘diagonal’]
Any
fillcolor¶Sets the color filling new shapes’ interior. Please note that if using a fillcolor with alpha greater than half, drag inside the active shape starts moving the shape underneath, otherwise a new shape could be started over.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
fillrule¶Determines the path’s interior. For more info please visit https://developer.mozilla.org/en- US/docs/Web/SVG/Attribute/fill-rule
[‘evenodd’, ‘nonzero’]
Any
label¶The ‘label’ property is an instance of Label that may be specified as:
An instance of
plotly.graph_objects.layout.newshape.LabelA dict of string/value properties that will be passed to the Label constructor
layer¶Specifies whether new shapes are drawn below gridlines (“below”), between gridlines and traces (“between”) or above traces (“above”).
[‘below’, ‘above’, ‘between’]
Any
legend¶Sets the reference to a legend to show new shape in. References
to these legends are “legend”, “legend2”, “legend3”, etc.
Settings for these legends are set in the layout, under
layout.legend, layout.legend2, etc.
The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
legendgroup¶Sets the legend group for new shape. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
A string
A number that will be converted to a string
legendgrouptitle¶The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.layout.newshape.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
legendrank¶Sets the legend rank for new shape. Items and groups with
smaller ranks are presented on top/left side while with
“reversed” legend.traceorder they are on bottom/right side.
The default legendrank is 1000, so that you can use ranks less
than 1000 to place certain items before all unranked items, and
ranks greater than 1000 to go after all unranked items.
An int or float
int|float
legendwidth¶Sets the width (in px or fraction) of the legend for new shape.
An int or float in the interval [0, inf]
int|float
line¶The ‘line’ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.layout.newshape.LineA dict of string/value properties that will be passed to the Line constructor
name¶Sets new shape name. The name appears as the legend item.
A string
A number that will be converted to a string
opacity¶Sets the opacity of new shapes.
An int or float in the interval [0, 1]
int|float
showlegend¶Determines whether or not new shape is shown in the legend.
A boolean value: True or False
visible¶Determines whether or not new shape is visible. If “legendonly”, the shape is not drawn, but can appear as a legend item (provided that the legend itself is visible).
[True, False, ‘legendonly’]
Any
plotly.graph_objects.layout.Polar(arg=None, angularaxis=None, bargap=None, barmode=None, bgcolor=None, domain=None, gridshape=None, hole=None, radialaxis=None, sector=None, uirevision=None, **kwargs)¶angularaxis¶The ‘angularaxis’ property is an instance of AngularAxis that may be specified as:
An instance of
plotly.graph_objects.layout.polar.AngularAxisA dict of string/value properties that will be passed to the AngularAxis constructor
bargap¶Sets the gap between bars of adjacent location coordinates. Values are unitless, they represent fractions of the minimum difference in bar positions in the data.
An int or float in the interval [0, 1]
int|float
barmode¶Determines how bars at the same location coordinate are displayed on the graph. With “stack”, the bars are stacked on top of one another With “overlay”, the bars are plotted over one another, you might need to reduce “opacity” to see multiple bars.
[‘stack’, ‘overlay’]
Any
bgcolor¶Set the background color of the subplot
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
domain¶The ‘domain’ property is an instance of Domain that may be specified as:
An instance of
plotly.graph_objects.layout.polar.DomainA dict of string/value properties that will be passed to the Domain constructor
gridshape¶Determines if the radial axis grid lines and angular axis line
are drawn as “circular” sectors or as “linear” (polygon)
sectors. Has an effect only when the angular axis has type
“category”. Note that radialaxis.angle is snapped to the
angle of the closest vertex when gridshape is “circular” (so
that radial axis scale is the same as the data scale).
[‘circular’, ‘linear’]
Any
hole¶Sets the fraction of the radius to cut out of the polar subplot.
An int or float in the interval [0, 1]
int|float
radialaxis¶The ‘radialaxis’ property is an instance of RadialAxis that may be specified as:
An instance of
plotly.graph_objects.layout.polar.RadialAxisA dict of string/value properties that will be passed to the RadialAxis constructor
sector¶degrees). Sector are assumed to be spanned in the counterclockwise direction with 0 corresponding to rightmost limit of the polar subplot.
The ‘sector’ property is an info array that may be specified as:
a list or tuple of 2 elements where:
An int or float
An int or float
list
uirevision¶Controls persistence of user-driven changes in axis attributes,
if not overridden in the individual axes. Defaults to
layout.uirevision.
The ‘uirevision’ property accepts values of any type
Any
plotly.graph_objects.layout.Scene(arg=None, annotations=None, annotationdefaults=None, aspectmode=None, aspectratio=None, bgcolor=None, camera=None, domain=None, dragmode=None, hovermode=None, uirevision=None, xaxis=None, yaxis=None, zaxis=None, **kwargs)¶annotationdefaults¶When used in a template (as layout.template.layout.scene.annotationdefaults), sets the default property values to use for elements of layout.scene.annotations
The ‘annotationdefaults’ property is an instance of Annotation that may be specified as:
An instance of
plotly.graph_objects.layout.scene.AnnotationA dict of string/value properties that will be passed to the Annotation constructor
annotations¶The ‘annotations’ property is a tuple of instances of Annotation that may be specified as:
A list or tuple of instances of plotly.graph_objects.layout.scene.Annotation
A list or tuple of dicts of string/value properties that will be passed to the Annotation constructor
aspectmode¶If “cube”, this scene’s axes are drawn as a cube, regardless of the axes’ ranges. If “data”, this scene’s axes are drawn in proportion with the axes’ ranges. If “manual”, this scene’s axes are drawn in proportion with the input of “aspectratio” (the default behavior if “aspectratio” is provided). If “auto”, this scene’s axes are drawn using the results of “data” except when one axis is more than four times the size of the two others, where in that case the results of “cube” are used.
[‘auto’, ‘cube’, ‘data’, ‘manual’]
Any
aspectratio¶Sets this scene’s axis aspectratio.
The ‘aspectratio’ property is an instance of Aspectratio that may be specified as:
An instance of
plotly.graph_objects.layout.scene.AspectratioA dict of string/value properties that will be passed to the Aspectratio constructor
bgcolor¶hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
camera¶The ‘camera’ property is an instance of Camera that may be specified as:
An instance of
plotly.graph_objects.layout.scene.CameraA dict of string/value properties that will be passed to the Camera constructor
domain¶The ‘domain’ property is an instance of Domain that may be specified as:
An instance of
plotly.graph_objects.layout.scene.DomainA dict of string/value properties that will be passed to the Domain constructor
dragmode¶Determines the mode of drag interactions for this scene.
[‘orbit’, ‘turntable’, ‘zoom’, ‘pan’, False]
Any
hovermode¶Determines the mode of hover interactions for this scene.
[‘closest’, False]
Any
uirevision¶Controls persistence of user-driven changes in camera
attributes. Defaults to layout.uirevision.
The ‘uirevision’ property accepts values of any type
Any
xaxis¶The ‘xaxis’ property is an instance of XAxis that may be specified as:
An instance of
plotly.graph_objects.layout.scene.XAxisA dict of string/value properties that will be passed to the XAxis constructor
yaxis¶The ‘yaxis’ property is an instance of YAxis that may be specified as:
An instance of
plotly.graph_objects.layout.scene.YAxisA dict of string/value properties that will be passed to the YAxis constructor
zaxis¶The ‘zaxis’ property is an instance of ZAxis that may be specified as:
An instance of
plotly.graph_objects.layout.scene.ZAxisA dict of string/value properties that will be passed to the ZAxis constructor
plotly.graph_objects.layout.Selection(arg=None, line=None, name=None, opacity=None, path=None, templateitemname=None, type=None, x0=None, x1=None, xref=None, y0=None, y1=None, yref=None, **kwargs)¶line¶The ‘line’ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.layout.selection.LineA dict of string/value properties that will be passed to the Line constructor
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 this
name alongside your modifications (including visible: false
or enabled: false to hide it). Has no effect outside of a
template.
A string
A number that will be converted to a string
opacity¶Sets the opacity of the selection.
An int or float in the interval [0, 1]
int|float
path¶For type “path” - a valid SVG path similar to shapes.path
in data coordinates. Allowed segments are: M, L and Z.
A string
A number that will be converted to a string
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 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.
A string
A number that will be converted to a string
type¶Specifies the selection type to be drawn. If “rect”, a
rectangle is drawn linking (x0,`y0`), (x1,`y0`),
(x1,`y1`) and (x0,`y1`). If “path”, draw a custom SVG path
using path.
[‘rect’, ‘path’]
Any
x0¶Sets the selection’s starting x position.
The ‘x0’ property accepts values of any type
Any
x1¶Sets the selection’s end x position.
The ‘x1’ property accepts values of any type
Any
xref¶Sets the selection’s x coordinate axis. If set to a x axis id
(e.g. “x” or “x2”), the x position refers to a x coordinate.
If set to “paper”, the x position refers to the distance from
the left of the plotting area in normalized coordinates where 0
(1) corresponds to the left (right). If set to a x axis ID
followed by “domain” (separated by a space), the position
behaves like for “paper”, but refers to the distance in
fractions of the domain length from the left of the domain of
that axis: e.g., x2 domain refers to the domain of the second
x axis and a x position of 0.5 refers to the point between the
left and the right of the domain of the second x axis.
[‘paper’]
[‘^x([2-9]|[1-9][0-9]+)?( domain)?$’]
Any
y0¶Sets the selection’s starting y position.
The ‘y0’ property accepts values of any type
Any
y1¶Sets the selection’s end y position.
The ‘y1’ property accepts values of any type
Any
yref¶Sets the selection’s x coordinate axis. If set to a y axis id
(e.g. “y” or “y2”), the y position refers to a y coordinate.
If set to “paper”, the y position refers to the distance from
the bottom of the plotting area in normalized coordinates where
0 (1) corresponds to the bottom (top). If set to a y axis ID
followed by “domain” (separated by a space), the position
behaves like for “paper”, but refers to the distance in
fractions of the domain length from the bottom of the domain of
that axis: e.g., y2 domain refers to the domain of the second
y axis and a y position of 0.5 refers to the point between the
bottom and the top of the domain of the second y axis.
[‘paper’]
[‘^y([2-9]|[1-9][0-9]+)?( domain)?$’]
Any
plotly.graph_objects.layout.Shape(arg=None, editable=None, fillcolor=None, fillrule=None, label=None, layer=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, line=None, name=None, opacity=None, path=None, showlegend=None, templateitemname=None, type=None, visible=None, x0=None, x0shift=None, x1=None, x1shift=None, xanchor=None, xref=None, xsizemode=None, y0=None, y0shift=None, y1=None, y1shift=None, yanchor=None, yref=None, ysizemode=None, **kwargs)¶editable¶Determines whether the shape could be activated for edit or
not. Has no effect when the older editable shapes mode is
enabled via config.editable or config.edits.shapePosition.
A boolean value: True or False
fillcolor¶Sets the color filling the shape’s interior. Only applies to closed shapes.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
fillrule¶Determines which regions of complex paths constitute the interior. For more info please visit https://developer.mozilla.org/en- US/docs/Web/SVG/Attribute/fill-rule
[‘evenodd’, ‘nonzero’]
Any
label¶The ‘label’ property is an instance of Label that may be specified as:
An instance of
plotly.graph_objects.layout.shape.LabelA dict of string/value properties that will be passed to the Label constructor
layer¶Specifies whether shapes are drawn below gridlines (“below”), between gridlines and traces (“between”) or above traces (“above”).
[‘below’, ‘above’, ‘between’]
Any
legend¶Sets the reference to a legend to show this shape in.
References to these legends are “legend”, “legend2”, “legend3”,
etc. Settings for these legends are set in the layout, under
layout.legend, layout.legend2, etc.
The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
legendgroup¶Sets the legend group for this shape. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
A string
A number that will be converted to a string
legendgrouptitle¶The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.layout.shape.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
legendrank¶Sets the legend rank for this shape. Items and groups with
smaller ranks are presented on top/left side while with
“reversed” legend.traceorder they are on bottom/right side.
The default legendrank is 1000, so that you can use ranks less
than 1000 to place certain items before all unranked items, and
ranks greater than 1000 to go after all unranked items. When
having unranked or equal rank items shapes would be displayed
after traces i.e. according to their order in data and layout.
An int or float
int|float
legendwidth¶Sets the width (in px or fraction) of the legend for this shape.
An int or float in the interval [0, inf]
int|float
line¶The ‘line’ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.layout.shape.LineA dict of string/value properties that will be passed to the Line constructor
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 this
name alongside your modifications (including visible: false
or enabled: false to hide it). Has no effect outside of a
template.
A string
A number that will be converted to a string
opacity¶Sets the opacity of the shape.
An int or float in the interval [0, 1]
int|float
path¶For type “path” - a valid SVG path with the pixel values
replaced by data values in xsizemode/ysizemode being
“scaled” and taken unmodified as pixels relative to xanchor
and yanchor in case of “pixel” size mode. There are a few
restrictions / quirks only absolute instructions, not relative.
So the allowed segments are: M, L, H, V, Q, C, T, S, and Z arcs
(A) are not allowed because radius rx and ry are relative. In
the future we could consider supporting relative commands, but
we would have to decide on how to handle date and log axes.
Note that even as is, Q and C Bezier paths that are smooth on
linear axes may not be smooth on log, and vice versa. no
chained “polybezier” commands - specify the segment type for
each one. On category axes, values are numbers scaled to the
serial numbers of categories because using the categories
themselves there would be no way to describe fractional
positions On data axes: because space and T are both normal
components of path strings, we can’t use either to separate
date from time parts. Therefore we’ll use underscore for this
purpose: 2015-02-21_13:45:56.789
A string
A number that will be converted to a string
showlegend¶Determines whether or not this shape is shown in the legend.
A boolean value: True or False
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 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.
A string
A number that will be converted to a string
type¶Specifies the shape type to be drawn. If “line”, a line is
drawn from (x0,`y0`) to (x1,`y1`) with respect to the axes’
sizing mode. If “circle”, a circle is drawn from
((x0`+`x1)/2, (y0`+`y1)/2)) with radius (|(`x0`+`x1`)/2 -
`x0`|, |(`y0`+`y1`)/2 -`y0`)|) with respect to the axes’ sizing
mode. If “rect”, a rectangle is drawn linking (x0,`y0`),
(x1,`y0`), (x1,`y1`), (x0,`y1`), (x0,`y0`) with respect
to the axes’ sizing mode. If “path”, draw a custom SVG path
using path. with respect to the axes’ sizing mode.
[‘circle’, ‘rect’, ‘path’, ‘line’]
Any
visible¶Determines whether or not this shape is visible. If “legendonly”, the shape is not drawn, but can appear as a legend item (provided that the legend itself is visible).
[True, False, ‘legendonly’]
Any
x0¶Sets the shape’s starting x position. See type and
xsizemode for more info.
The ‘x0’ property accepts values of any type
Any
x0shift¶Shifts x0 away from the center of the category when xref is
a “category” or “multicategory” axis. -0.5 corresponds to the
start of the category and 0.5 corresponds to the end of the
category.
An int or float in the interval [-1, 1]
int|float
x1¶Sets the shape’s end x position. See type and xsizemode for
more info.
The ‘x1’ property accepts values of any type
Any
x1shift¶Shifts x1 away from the center of the category when xref is
a “category” or “multicategory” axis. -0.5 corresponds to the
start of the category and 0.5 corresponds to the end of the
category.
An int or float in the interval [-1, 1]
int|float
xanchor¶Only relevant in conjunction with xsizemode set to “pixel”.
Specifies the anchor point on the x axis to which x0, x1
and x coordinates within path are relative to. E.g. useful to
attach a pixel sized shape to a certain data value. No effect
when xsizemode not set to “pixel”.
The ‘xanchor’ property accepts values of any type
Any
xref¶Sets the shape’s x coordinate axis. If set to a x axis id (e.g.
“x” or “x2”), the x position refers to a x coordinate. If set
to “paper”, the x position refers to the distance from the
left of the plotting area in normalized coordinates where 0 (1)
corresponds to the left (right). If set to a x axis ID followed
by “domain” (separated by a space), the position behaves like
for “paper”, but refers to the distance in fractions of the
domain length from the left of the domain of that axis: e.g.,
x2 domain refers to the domain of the second x axis and a x
position of 0.5 refers to the point between the left and the
right of the domain of the second x axis. If an array of axis
IDs is provided, each x value will refer to the corresponding
axis, e.g., [‘x’, ‘x2’] for a rectangle, line, or circle means
x0 uses the x axis and x1 uses the x2 axis. Path shapes
using an array should have one entry for each x coordinate in
the string.
[‘paper’]
[‘^x([2-9]|[1-9][0-9]+)?( domain)?$’]
A tuple, list, or one-dimensional numpy array of the above
Any|numpy.ndarray
xsizemode¶Sets the shapes’s sizing mode along the x axis. If set to
“scaled”, x0, x1 and x coordinates within path refer to
data values on the x axis or a fraction of the plot area’s
width (xref set to “paper”). If set to “pixel”, xanchor
specifies the x position in terms of data or plot fraction but
x0, x1 and x coordinates within path are pixels relative
to xanchor. This way, the shape can have a fixed width while
maintaining a position relative to data or plot fraction. Note:
xsizemode “pixel” is not supported when xref is an array.
[‘scaled’, ‘pixel’]
Any
y0¶Sets the shape’s starting y position. See type and
ysizemode for more info.
The ‘y0’ property accepts values of any type
Any
y0shift¶Shifts y0 away from the center of the category when yref is
a “category” or “multicategory” axis. -0.5 corresponds to the
start of the category and 0.5 corresponds to the end of the
category.
An int or float in the interval [-1, 1]
int|float
y1¶Sets the shape’s end y position. See type and ysizemode for
more info.
The ‘y1’ property accepts values of any type
Any
y1shift¶Shifts y1 away from the center of the category when yref is
a “category” or “multicategory” axis. -0.5 corresponds to the
start of the category and 0.5 corresponds to the end of the
category.
An int or float in the interval [-1, 1]
int|float
yanchor¶Only relevant in conjunction with ysizemode set to “pixel”.
Specifies the anchor point on the y axis to which y0, y1
and y coordinates within path are relative to. E.g. useful to
attach a pixel sized shape to a certain data value. No effect
when ysizemode not set to “pixel”.
The ‘yanchor’ property accepts values of any type
Any
yref¶Sets the shape’s y coordinate axis. If set to a y axis id (e.g.
“y” or “y2”), the y position refers to a y coordinate. If set
to “paper”, the y position refers to the distance from the
bottom of the plotting area in normalized coordinates where 0
(1) corresponds to the bottom (top). If set to a y axis ID
followed by “domain” (separated by a space), the position
behaves like for “paper”, but refers to the distance in
fractions of the domain length from the bottom of the domain of
that axis: e.g., y2 domain refers to the domain of the second
y axis and a y position of 0.5 refers to the point between the
bottom and the top of the domain of the second y axis. If an
array of axis IDs is provided, each y value will refer to the
corresponding axis, e.g., [‘y’, ‘y2’] for a rectangle, line, or
circle means y0 uses the y axis and y1 uses the y2
axis. Path shapes using an array should have one entry for each
y coordinate in the string.
[‘paper’]
[‘^y([2-9]|[1-9][0-9]+)?( domain)?$’]
A tuple, list, or one-dimensional numpy array of the above
Any|numpy.ndarray
ysizemode¶Sets the shapes’s sizing mode along the y axis. If set to
“scaled”, y0, y1 and y coordinates within path refer to
data values on the y axis or a fraction of the plot area’s
height (yref set to “paper”). If set to “pixel”, yanchor
specifies the y position in terms of data or plot fraction but
y0, y1 and y coordinates within path are pixels relative
to yanchor. This way, the shape can have a fixed height while
maintaining a position relative to data or plot fraction. Note:
ysizemode “pixel” is not supported when yref is an array.
[‘scaled’, ‘pixel’]
Any
plotly.graph_objects.layout.Slider(arg=None, active=None, activebgcolor=None, bgcolor=None, bordercolor=None, borderwidth=None, currentvalue=None, font=None, len=None, lenmode=None, minorticklen=None, name=None, pad=None, steps=None, stepdefaults=None, templateitemname=None, tickcolor=None, ticklen=None, tickwidth=None, transition=None, visible=None, x=None, xanchor=None, y=None, yanchor=None, **kwargs)¶active¶Determines which button (by index starting from 0) is considered active.
An int or float in the interval [0, inf]
int|float
activebgcolor¶Sets the background color of the slider grip while dragging.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
bgcolor¶Sets the background color of the slider.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
bordercolor¶Sets the color of the border enclosing the slider.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
borderwidth¶Sets the width (in px) of the border enclosing the slider.
An int or float in the interval [0, inf]
int|float
currentvalue¶The ‘currentvalue’ property is an instance of Currentvalue that may be specified as:
An instance of
plotly.graph_objects.layout.slider.CurrentvalueA dict of string/value properties that will be passed to the Currentvalue constructor
font¶Sets the font of the slider step labels.
The ‘font’ property is an instance of Font that may be specified as:
An instance of
plotly.graph_objects.layout.slider.FontA dict of string/value properties that will be passed to the Font constructor
len¶Sets the length of the slider This measure excludes the padding of both ends. That is, the slider’s length is this length minus the padding on both ends.
An int or float in the interval [0, inf]
int|float
lenmode¶Determines whether this slider length is set in units of plot
“fraction” or in *pixels. Use len to set the value.
[‘fraction’, ‘pixels’]
Any
minorticklen¶Sets the length in pixels of minor step tick marks
An int or float in the interval [0, inf]
int|float
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 this
name alongside your modifications (including visible: false
or enabled: false to hide it). Has no effect outside of a
template.
A string
A number that will be converted to a string
pad¶Set the padding of the slider component along each side.
The ‘pad’ property is an instance of Pad that may be specified as:
An instance of
plotly.graph_objects.layout.slider.PadA dict of string/value properties that will be passed to the Pad constructor
stepdefaults¶When used in a template (as layout.template.layout.slider.stepdefaults), sets the default property values to use for elements of layout.slider.steps
The ‘stepdefaults’ property is an instance of Step that may be specified as:
An instance of
plotly.graph_objects.layout.slider.StepA dict of string/value properties that will be passed to the Step constructor
steps¶The ‘steps’ property is a tuple of instances of Step that may be specified as:
A list or tuple of instances of plotly.graph_objects.layout.slider.Step
A list or tuple of dicts of string/value properties that will be passed to the Step constructor
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 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.
A string
A number that will be converted to a string
tickcolor¶Sets the color of the border enclosing the slider.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
ticklen¶Sets the length in pixels of step tick marks
An int or float in the interval [0, inf]
int|float
tickwidth¶Sets the tick width (in px).
An int or float in the interval [0, inf]
int|float
transition¶The ‘transition’ property is an instance of Transition that may be specified as:
An instance of
plotly.graph_objects.layout.slider.TransitionA dict of string/value properties that will be passed to the Transition constructor
visible¶Determines whether or not the slider is visible.
A boolean value: True or False
x¶Sets the x position (in normalized coordinates) of the slider.
An int or float in the interval [-2, 3]
int|float
xanchor¶Sets the slider’s horizontal position anchor. This anchor binds
the x position to the “left”, “center” or “right” of the
range selector.
[‘auto’, ‘left’, ‘center’, ‘right’]
Any
y¶Sets the y position (in normalized coordinates) of the slider.
An int or float in the interval [-2, 3]
int|float
yanchor¶Sets the slider’s vertical position anchor This anchor binds
the y position to the “top”, “middle” or “bottom” of the
range selector.
[‘auto’, ‘top’, ‘middle’, ‘bottom’]
Any
plotly.graph_objects.layout.Smith(arg=None, bgcolor=None, domain=None, imaginaryaxis=None, realaxis=None, **kwargs)¶bgcolor¶Set the background color of the subplot
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
domain¶The ‘domain’ property is an instance of Domain that may be specified as:
An instance of
plotly.graph_objects.layout.smith.DomainA dict of string/value properties that will be passed to the Domain constructor
imaginaryaxis¶The ‘imaginaryaxis’ property is an instance of Imaginaryaxis that may be specified as:
An instance of
plotly.graph_objects.layout.smith.ImaginaryaxisA dict of string/value properties that will be passed to the Imaginaryaxis constructor
realaxis¶The ‘realaxis’ property is an instance of Realaxis that may be specified as:
An instance of
plotly.graph_objects.layout.smith.RealaxisA dict of string/value properties that will be passed to the Realaxis constructor
plotly.graph_objects.layout.Template(arg=None, data=None, layout=None, **kwargs)¶data¶The ‘data’ property is an instance of Data that may be specified as:
An instance of
plotly.graph_objects.layout.template.DataA dict of string/value properties that will be passed to the Data constructor
layout¶The ‘layout’ property is an instance of Layout that may be specified as:
An instance of
plotly.graph_objects.LayoutA dict of string/value properties that will be passed to the Layout constructor
plotly.graph_objects.layout.Ternary(arg=None, aaxis=None, baxis=None, bgcolor=None, caxis=None, domain=None, sum=None, uirevision=None, **kwargs)¶aaxis¶The ‘aaxis’ property is an instance of Aaxis that may be specified as:
An instance of
plotly.graph_objects.layout.ternary.AaxisA dict of string/value properties that will be passed to the Aaxis constructor
baxis¶The ‘baxis’ property is an instance of Baxis that may be specified as:
An instance of
plotly.graph_objects.layout.ternary.BaxisA dict of string/value properties that will be passed to the Baxis constructor
bgcolor¶Set the background color of the subplot
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
caxis¶The ‘caxis’ property is an instance of Caxis that may be specified as:
An instance of
plotly.graph_objects.layout.ternary.CaxisA dict of string/value properties that will be passed to the Caxis constructor
domain¶The ‘domain’ property is an instance of Domain that may be specified as:
An instance of
plotly.graph_objects.layout.ternary.DomainA dict of string/value properties that will be passed to the Domain constructor
sum¶The number each triplet should sum to, and the maximum range of each axis
An int or float in the interval [0, inf]
int|float
uirevision¶Controls persistence of user-driven changes in axis min and
title, if not overridden in the individual axes. Defaults to
layout.uirevision.
The ‘uirevision’ property accepts values of any type
Any
plotly.graph_objects.layout.Title(arg=None, automargin=None, font=None, pad=None, subtitle=None, text=None, x=None, xanchor=None, xref=None, y=None, yanchor=None, yref=None, **kwargs)¶automargin¶Determines whether the title can automatically push the figure
margins. If yref='paper' then the margin will expand to
ensure that the title doesn’t overlap with the edges of the
container. If yref='container' then the margins will ensure
that the title doesn’t overlap with the plot area, tick labels,
and axis titles. If automargin=true and the margins need to
be expanded, then y will be set to a default 1 and yanchor will
be set to an appropriate default to ensure that minimal margin
space is needed. Note that when yref='paper', only 1 or 0 are
allowed y values. Invalid values will be reset to the default
1.
A boolean value: True or False
font¶Sets the title font.
The ‘font’ property is an instance of Font that may be specified as:
An instance of
plotly.graph_objects.layout.title.FontA dict of string/value properties that will be passed to the Font constructor
pad¶Sets the padding of the title. Each padding value only applies
when the corresponding xanchor/yanchor value is set
accordingly. E.g. for left padding to take effect, xanchor
must be set to “left”. The same rule applies if
xanchor/yanchor is determined automatically. Padding is
muted if the respective anchor value is “middle*/*center”.
The ‘pad’ property is an instance of Pad that may be specified as:
An instance of
plotly.graph_objects.layout.title.PadA dict of string/value properties that will be passed to the Pad constructor
subtitle¶The ‘subtitle’ property is an instance of Subtitle that may be specified as:
An instance of
plotly.graph_objects.layout.title.SubtitleA dict of string/value properties that will be passed to the Subtitle constructor
text¶Sets the plot’s title.
A string
A number that will be converted to a string
x¶Sets the x position with respect to xref in normalized
coordinates from 0 (left) to 1 (right).
An int or float in the interval [0, 1]
int|float
xanchor¶Sets the title’s horizontal alignment with respect to its x
position. “left” means that the title starts at x, “right”
means that the title ends at x and “center” means that the
title’s center is at x. “auto” divides xref by three and
calculates the xanchor value automatically based on the value
of x.
[‘auto’, ‘left’, ‘center’, ‘right’]
Any
xref¶Sets the container x refers to. “container” spans the entire
width of the plot. “paper” refers to the width of the
plotting area only.
[‘container’, ‘paper’]
Any
y¶Sets the y position with respect to yref in normalized
coordinates from 0 (bottom) to 1 (top). “auto” places the
baseline of the title onto the vertical center of the top
margin.
An int or float in the interval [0, 1]
int|float
yanchor¶Sets the title’s vertical alignment with respect to its y
position. “top” means that the title’s cap line is at y,
“bottom” means that the title’s baseline is at y and “middle”
means that the title’s midline is at y. “auto” divides yref
by three and calculates the yanchor value automatically based
on the value of y.
[‘auto’, ‘top’, ‘middle’, ‘bottom’]
Any
yref¶Sets the container y refers to. “container” spans the entire
height of the plot. “paper” refers to the height of the
plotting area only.
[‘container’, ‘paper’]
Any
plotly.graph_objects.layout.Transition(arg=None, duration=None, easing=None, ordering=None, **kwargs)¶duration¶The duration of the transition, in milliseconds. If equal to zero, updates are synchronous.
An int or float in the interval [0, inf]
int|float
easing¶The easing function used for the transition
[‘linear’, ‘quad’, ‘cubic’, ‘sin’, ‘exp’, ‘circle’, ‘elastic’, ‘back’, ‘bounce’, ‘linear-in’, ‘quad-in’, ‘cubic-in’, ‘sin-in’, ‘exp-in’, ‘circle-in’, ‘elastic-in’, ‘back-in’, ‘bounce-in’, ‘linear-out’, ‘quad-out’, ‘cubic-out’, ‘sin-out’, ‘exp-out’, ‘circle-out’, ‘elastic-out’, ‘back-out’, ‘bounce-out’, ‘linear-in-out’, ‘quad-in-out’, ‘cubic-in-out’, ‘sin-in-out’, ‘exp-in-out’, ‘circle-in-out’, ‘elastic-in-out’, ‘back-in-out’, ‘bounce-in-out’]
Any
ordering¶Determines whether the figure’s layout or traces smoothly transitions during updates that make both traces and layout change.
[‘layout first’, ‘traces first’]
Any
plotly.graph_objects.layout.Uniformtext(arg=None, minsize=None, mode=None, **kwargs)¶minsize¶Sets the minimum text size between traces of the same type.
An int or float in the interval [0, inf]
int|float
mode¶Determines how the font size for various text elements are
uniformed between each trace type. If the computed text sizes
were smaller than the minimum size defined by
uniformtext.minsize using “hide” option hides the text; and
using “show” option shows the text without further downscaling.
Please note that if the size defined by minsize is greater
than the font size defined by trace, then the minsize is
used.
[False, ‘hide’, ‘show’]
Any
plotly.graph_objects.layout.Updatemenu(arg=None, active=None, bgcolor=None, bordercolor=None, borderwidth=None, buttons=None, buttondefaults=None, direction=None, font=None, name=None, pad=None, showactive=None, templateitemname=None, type=None, visible=None, x=None, xanchor=None, y=None, yanchor=None, **kwargs)¶active¶Determines which button (by index starting from 0) is considered active.
An int (or float that will be cast to an int) in the interval [-1, 9223372036854775807]
bgcolor¶Sets the background color of the update menu buttons.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
bordercolor¶Sets the color of the border enclosing the update menu.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
borderwidth¶Sets the width (in px) of the border enclosing the update menu.
An int or float in the interval [0, inf]
int|float
buttondefaults¶When used in a template (as layout.template.layout.updatemenu.buttondefaults), sets the default property values to use for elements of layout.updatemenu.buttons
The ‘buttondefaults’ property is an instance of Button that may be specified as:
An instance of
plotly.graph_objects.layout.updatemenu.ButtonA dict of string/value properties that will be passed to the Button constructor
buttons¶The ‘buttons’ property is a tuple of instances of Button that may be specified as:
A list or tuple of instances of plotly.graph_objects.layout.updatemenu.Button
A list or tuple of dicts of string/value properties that will be passed to the Button constructor
direction¶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.
[‘left’, ‘right’, ‘up’, ‘down’]
Any
font¶Sets the font of the update menu button text.
The ‘font’ property is an instance of Font that may be specified as:
An instance of
plotly.graph_objects.layout.updatemenu.FontA dict of string/value properties that will be passed to the Font constructor
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 this
name alongside your modifications (including visible: false
or enabled: false to hide it). Has no effect outside of a
template.
A string
A number that will be converted to a string
pad¶Sets the padding around the buttons or dropdown menu.
The ‘pad’ property is an instance of Pad that may be specified as:
An instance of
plotly.graph_objects.layout.updatemenu.PadA dict of string/value properties that will be passed to the Pad constructor
showactive¶Highlights active dropdown item or active button if true.
A boolean value: True or False
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 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.
A string
A number that will be converted to a string
type¶Determines whether the buttons are accessible via a dropdown menu or whether the buttons are stacked horizontally or vertically
[‘dropdown’, ‘buttons’]
Any
visible¶Determines whether or not the update menu is visible.
A boolean value: True or False
x¶Sets the x position (in normalized coordinates) of the update menu.
An int or float in the interval [-2, 3]
int|float
xanchor¶Sets the update menu’s horizontal position anchor. This anchor
binds the x position to the “left”, “center” or “right” of
the range selector.
[‘auto’, ‘left’, ‘center’, ‘right’]
Any
y¶Sets the y position (in normalized coordinates) of the update menu.
An int or float in the interval [-2, 3]
int|float
yanchor¶Sets the update menu’s vertical position anchor This anchor
binds the y position to the “top”, “middle” or “bottom” of
the range selector.
[‘auto’, ‘top’, ‘middle’, ‘bottom’]
Any
plotly.graph_objects.layout.XAxis(arg=None, anchor=None, automargin=None, autorange=None, autorangeoptions=None, autotickangles=None, autotypenumbers=None, calendar=None, categoryarray=None, categoryorder=None, color=None, constrain=None, constraintoward=None, dividercolor=None, dividerwidth=None, domain=None, dtick=None, exponentformat=None, fixedrange=None, gridcolor=None, griddash=None, gridwidth=None, hoverformat=None, insiderange=None, labelalias=None, layer=None, linecolor=None, linewidth=None, matches=None, maxallowed=None, minallowed=None, minexponent=None, minor=None, minorloglabels=None, mirror=None, modebardisable=None, nticks=None, overlaying=None, position=None, range=None, rangebreaks=None, rangebreakdefaults=None, rangemode=None, rangeselector=None, rangeslider=None, scaleanchor=None, scaleratio=None, separatethousands=None, showdividers=None, showexponent=None, showgrid=None, showline=None, showspikes=None, showticklabels=None, showtickprefix=None, showticksuffix=None, side=None, spikecolor=None, spikedash=None, spikemode=None, spikesnap=None, spikethickness=None, tick0=None, tickangle=None, tickcolor=None, tickfont=None, tickformat=None, tickformatstops=None, tickformatstopdefaults=None, ticklabelindex=None, ticklabelmode=None, ticklabeloverflow=None, ticklabelposition=None, ticklabelshift=None, ticklabelstandoff=None, ticklabelstep=None, ticklen=None, tickmode=None, tickprefix=None, ticks=None, tickson=None, ticksuffix=None, ticktext=None, tickvals=None, tickwidth=None, title=None, type=None, uirevision=None, unifiedhovertitle=None, visible=None, zeroline=None, zerolinecolor=None, zerolinelayer=None, zerolinewidth=None, **kwargs)¶anchor¶If set to an opposite-letter axis id (e.g. x2, y), this
axis is bound to the corresponding opposite-letter axis. If set
to “free”, this axis’ position is determined by position.
[‘free’]
[‘^x([2-9]|[1-9][0-9]+)?( domain)?$’, ‘^y([2-9]|[1-9][0-9]+)?( domain)?$’]
Any
automargin¶Determines whether long tick labels automatically grow the figure margins.
The ‘automargin’ property is a flaglist and may be specified as a string containing:
Any combination of [‘height’, ‘width’, ‘left’, ‘right’, ‘top’, ‘bottom’] joined with ‘+’ characters (e.g. ‘height+width’) OR exactly one of [True, False] (e.g. ‘False’)
Any
autorange¶Determines whether or not the range of this axis is computed in
relation to the input data. See rangemode for more info. If
range is provided and it has a value for both the lower and
upper bound, autorange is set to False. Using “min” applies
autorange only to set the minimum. Using “max” applies
autorange only to set the maximum. Using min reversed applies
autorange only to set the minimum on a reversed axis. Using
max reversed applies autorange only to set the maximum on a
reversed axis. Using “reversed” applies autorange on both ends
and reverses the axis direction.
[True, False, ‘reversed’, ‘min reversed’, ‘max reversed’, ‘min’, ‘max’]
Any
autorangeoptions¶The ‘autorangeoptions’ property is an instance of Autorangeoptions that may be specified as:
An instance of
plotly.graph_objects.layout.xaxis.AutorangeoptionsA dict of string/value properties that will be passed to the Autorangeoptions constructor
autotickangles¶When tickangle is set to “auto”, it will be set to the first
angle in this array that is large enough to prevent label
overlap.
The ‘autotickangles’ property is an info array that may be specified as: * a list of elements where:
The ‘autotickangles[i]’ property is a angle (in degrees) that may be
specified as a number between -180 and 180. Numeric values outside this range are converted to the equivalent value (e.g. 270 is converted to -90).
autotypenumbers¶Using “strict” a numeric string in trace data is not converted
to a number. Using convert types a numeric string in trace
data may be treated as a number during automatic axis type
detection. Defaults to layout.autotypenumbers.
[‘convert types’, ‘strict’]
Any
calendar¶Sets the calendar system to use for range and tick0 if this
is a date axis. This does not set the calendar for interpreting
data on this axis, that’s specified in the trace or via the
global layout.calendar
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
Any
categoryarray¶Sets the order in which categories on this axis appear. Only
has an effect if categoryorder is set to “array”. Used with
categoryorder.
The ‘categoryarray’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
numpy.ndarray
categoryorder¶Specifies the ordering logic for the case of categorical
variables. By default, plotly uses “trace”, which specifies the
order that is present in the data supplied. Set categoryorder
to category ascending or category descending if order
should be determined by the alphanumerical order of the
category names. Set categoryorder to “array” to derive the
ordering from the attribute categoryarray. If a category is
not found in the categoryarray array, the sorting behavior
for that attribute will be identical to the “trace” mode. The
unspecified categories will follow the categories in
categoryarray. Set categoryorder to total ascending or
total descending if order should be determined by the
numerical order of the values. Similarly, the order can be
determined by the min, max, sum, mean, geometric mean or median
of all the values.
[‘trace’, ‘category ascending’, ‘category descending’, ‘array’, ‘total ascending’, ‘total descending’, ‘min ascending’, ‘min descending’, ‘max ascending’, ‘max descending’, ‘sum ascending’, ‘sum descending’, ‘mean ascending’, ‘mean descending’, ‘geometric mean ascending’, ‘geometric mean descending’, ‘median ascending’, ‘median descending’]
Any
color¶Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
constrain¶If this axis needs to be compressed (either due to its own
scaleanchor and scaleratio or those of the other axis),
determines how that happens: by increasing the “range”, or by
decreasing the “domain”. Default is “domain” for axes
containing image traces, “range” otherwise.
[‘range’, ‘domain’]
Any
constraintoward¶If this axis needs to be compressed (either due to its own
scaleanchor and scaleratio or those of the other axis),
determines which direction we push the originally specified
plot area. Options are “left”, “center” (default), and “right”
for x axes, and “top”, “middle” (default), and “bottom” for y
axes.
[‘left’, ‘center’, ‘right’, ‘top’, ‘middle’, ‘bottom’]
Any
dividercolor¶Sets the color of the dividers Only has an effect on “multicategory” axes.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
dividerwidth¶Sets the width (in px) of the dividers Only has an effect on “multicategory” axes.
An int or float
int|float
domain¶Sets the domain of this axis (in plot fraction).
The ‘domain’ property is an info array that may be specified as:
a list or tuple of 2 elements where:
An int or float in the interval [0, 1]
An int or float in the interval [0, 1]
list
dtick¶Sets the step in-between ticks on this axis. Use with tick0.
Must be a positive number, or special strings available to
“log” and “date” axes. If the axis type is “log”, then ticks
are set every 10^(n*dtick) where n is the tick number. For
example, to set a tick mark at 1, 10, 100, 1000, … set dtick
to 1. To set tick marks at 1, 100, 10000, … set dtick to 2.
To set tick marks at 1, 5, 25, 125, 625, 3125, … set dtick to
log_10(5), or 0.69897000433. “log” has several special values;
“L<f>”, where f is a positive number, gives ticks linearly
spaced in value (but not position). For example tick0 = 0.1,
dtick = “L0.5” will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To
show powers of 10 plus small digits between, use “D1” (all
digits) or “D2” (only 2 and 5). tick0 is ignored for “D1” and
“D2”. If the axis type is “date”, then you must convert the
time to milliseconds. For example, to set the interval between
ticks to one day, set dtick to 86400000.0. “date” also has
special values “M<n>” gives ticks spaced by a number of months.
n must be a positive integer. To set ticks on the 15th of
every third month, set tick0 to “2000-01-15” and dtick to
“M3”. To set ticks every 4 years, set dtick to “M48”
The ‘dtick’ property accepts values of any type
Any
exponentformat¶Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If “none”, it appears as 1,000,000,000. If “e”, 1e+9. If “E”, 1E+9. If “power”, 1x10^9 (with 9 in a super script). If “SI”, 1G. If “B”, 1B. “SI” uses prefixes from “femto” f (10^-15) to “tera” T (10^12). SI extended covers instead the full SI range from “quecto” q (10^-30) to “quetta” Q (10^30). If “SI” or SI extended is used and the exponent is beyond the above ranges, the formatting rule will automatically be switched to the power notation.
[‘none’, ‘e’, ‘E’, ‘power’, ‘SI’, ‘B’, ‘SI extended’]
Any
fixedrange¶Determines whether or not this axis is zoom-able. If true, then zoom is disabled.
A boolean value: True or False
gridcolor¶Sets the color of the grid lines.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
griddash¶Sets the dash style of lines. Set to a dash type string (“solid”, “dot”, “dash”, “longdash”, “dashdot”, or “longdashdot”) or a dash length list in px (eg “5px,10px,2px,2px”).
[‘solid’, ‘dot’, ‘dash’, ‘longdash’, ‘dashdot’, ‘longdashdot’]
(e.g. ‘5px 10px 2px 2px’, ‘5, 10, 2, 2’, ‘10% 20% 40%’, etc.)
gridwidth¶Sets the width (in px) of the grid lines.
An int or float in the interval [0, inf]
int|float
hoverformat¶Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display “09~15~23.46”
A string
A number that will be converted to a string
insiderange¶(excluding the labels) when ticklabelposition of the anchored
axis has “inside”. Not implemented for axes with type “log”.
This would be ignored when range is provided.
The ‘insiderange’ property is an info array that may be specified as:
a list or tuple of 2 elements where:
The ‘insiderange[0]’ property accepts values of any type
The ‘insiderange[1]’ property accepts values of any type
list
labelalias¶Replacement text for specific tick or hover labels. For example using {US: ‘USA’, CA: ‘Canada’} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. For negative numbers the minus sign symbol used (U+2212) is wider than the regular ascii dash. That means you need to use −1 instead of -1. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html- like tags or MathJax.
The ‘labelalias’ property accepts values of any type
Any
layer¶Sets the layer on which this axis is displayed. If above
traces, this axis is displayed above all the subplot’s traces
If below traces, this axis is displayed below all the
subplot’s traces, but above the grid lines. Useful when used
together with scatter-like traces with cliponaxis set to
False to show markers and/or text nodes above this axis.
[‘above traces’, ‘below traces’]
Any
linecolor¶Sets the axis line color.
hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)
hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)
rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)
rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)
hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)
hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)
hwb (e.g. ‘hwb(0 0% 100%)’)
lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)
color (e.g. ‘color(display-p3 1 0 0)’)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
linewidth¶Sets the width (in px) of the axis line.
An int or float in the interval [0, inf]
int|float
matches¶If set to another axis id (e.g. x2, y), the range of this
axis will match the range of the corresponding axis in data-
coordinates space. Moreover, matching axes share auto-range
values, category lists and histogram auto-bins. Note that
setting axes simultaneously in both a scaleanchor and a
matches constraint is currently forbidden. Moreover, note
that matching axes must have the same type.
[‘^x([2-9]|[1-9][0-9]+)?( domain)?$’, ‘^y([2-9]|[1-9][0-9]+)?( domain)?$’]
Any
maxallowed¶Determines the maximum range of this axis.
The ‘maxallowed’ property accepts values of any type
Any
minallowed¶Determines the minimum range of this axis.
The ‘minallowed’ property accepts values of any type
Any
minexponent¶Hide SI prefix for 10^n if |n| is below this number. This only
has an effect when tickformat is “SI” or “B”.
An int or float in the interval [0, inf]
int|float
minor¶The ‘minor’ property is an instance of Minor that may be specified as:
An instance of
plotly.graph_objects.layout.xaxis.MinorA dict of string/value properties that will be passed to the Minor constructor
minorloglabels¶Determines how minor log labels are displayed. If small digits, small digits i.e. 2 or 5 are displayed. If “complete”, complete digits are displayed. If “none”, no labels are displayed.
[‘small digits’, ‘complete’, ‘none’]
Any
mirror¶Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If True, the axis lines are mirrored. If “ticks”, the axis lines and ticks are mirrored. If False, mirroring is disable. If “all”, axis lines are mirrored on all shared-axes subplots. If “allticks”, axis lines and ticks are mirrored on all shared-axes subplots.
[True, ‘ticks’, False, ‘all’, ‘allticks’]
Any
modebardisable¶Disables certain modebar buttons for this axis. “autoscale” disables the autoscale buttons, “zoominout” disables the zoom- in and zoom-out buttons.
The ‘modebardisable’ property is a flaglist and may be specified as a string containing:
Any combination of [‘autoscale’, ‘zoominout’] joined with ‘+’ characters (e.g. ‘autoscale+zoominout’) OR exactly one of [‘none’] (e.g. ‘none’)
Any
nticks¶Specifies the maximum number of ticks for the particular axis.
The actual number of ticks will be chosen automatically to be
less than or equal to nticks. Has an effect only if
tickmode is set to “auto”.
An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
overlaying¶If set a same-letter axis id, this axis is overlaid on top of the corresponding same-letter axis, with traces and axes visible for both axes. If False, this axis does not overlay any same-letter axes. In this case, for axes with overlapping domains only the highest-numbered axis will be visible.
[‘free’]
[‘^x([2-9]|[1-9][0-9]+)?( domain)?$’, ‘^y([2-9]|[1-9][0-9]+)?( domain)?$’]
Any
position¶Sets the position of this axis in the plotting space (in
normalized coordinates). Only has an effect if anchor is set
to “free”.
An int or float in the interval [0, 1]
int|float
range¶type is “log”, thenyou must take the log of your desired range (e.g. to set the
range from 1 to 100, set the range from 0 to 2). If the axis
type is “date”, it should be date strings, like date data,
though Date objects and unix milliseconds will be accepted and
converted to strings. If the axis type is “category”, it
should be numbers, using the scale where each category is
assigned a serial number from zero in the order it appears.
Leaving either or both elements null impacts the default
autorange.
The ‘range’ property is an info array that may be specified as:
a list or tuple of 2 elements where:
The ‘range[0]’ property accepts values of any type
The ‘range[1]’ property accepts values of any type
list
rangebreakdefaults¶When used in a template (as layout.template.layout.xaxis.rangebreakdefaults), sets the default property values to use for elements of layout.xaxis.rangebreaks
The ‘rangebreakdefaults’ property is an instance of Rangebreak that may be specified as:
An instance of
plotly.graph_objects.layout.xaxis.RangebreakA dict of string/value properties that will be passed to the Rangebreak constructor
rangebreaks¶The ‘rangebreaks’ property is a tuple of instances of Rangebreak that may be specified as:
A list or tuple of instances of plotly.graph_objects.layout.xaxis.Rangebreak
A list or tuple of dicts of string/value properties that will be passed to the Rangebreak constructor
rangemode¶If “normal”, the range is computed in relation to the extrema of the input data. If “tozero”, the range extends to 0, regardless of the input data If “nonnegative”, the range is non-negative, regardless of the input data. Applies only to linear axes.
[‘normal’, ‘tozero’, ‘nonnegative’]
Any
rangeselector¶The ‘rangeselector’ property is an instance of Rangeselector that may be specified as:
An instance of
plotly.graph_objects.layout.xaxis.RangeselectorA dict of string/value properties that will be passed to the Rangeselector constructor
rangeslider¶The ‘rangeslider’ property is an instance of Rangeslider that may be specified as:
An instance of
plotly.graph_objects.layout.xaxis.RangesliderA dict of string/value properties that will be passed to the Rangeslider constructor