plotly.graph_objects
.Scatter¶
-
class
plotly.graph_objects.
Scatter
(arg=None, alignmentgroup=None, cliponaxis=None, connectgaps=None, customdata=None, customdatasrc=None, dx=None, dy=None, error_x=None, error_y=None, fill=None, fillcolor=None, fillgradient=None, fillpattern=None, groupnorm=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hoveron=None, hovertemplate=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, line=None, marker=None, meta=None, metasrc=None, mode=None, name=None, offsetgroup=None, opacity=None, orientation=None, selected=None, selectedpoints=None, showlegend=None, stackgaps=None, stackgroup=None, stream=None, text=None, textfont=None, textposition=None, textpositionsrc=None, textsrc=None, texttemplate=None, texttemplatesrc=None, uid=None, uirevision=None, unselected=None, visible=None, x=None, x0=None, xaxis=None, xcalendar=None, xhoverformat=None, xperiod=None, xperiod0=None, xperiodalignment=None, xsrc=None, y=None, y0=None, yaxis=None, ycalendar=None, yhoverformat=None, yperiod=None, yperiod0=None, yperiodalignment=None, ysrc=None, zorder=None, **kwargs)¶ -
__init__
(arg=None, alignmentgroup=None, cliponaxis=None, connectgaps=None, customdata=None, customdatasrc=None, dx=None, dy=None, error_x=None, error_y=None, fill=None, fillcolor=None, fillgradient=None, fillpattern=None, groupnorm=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hoveron=None, hovertemplate=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, line=None, marker=None, meta=None, metasrc=None, mode=None, name=None, offsetgroup=None, opacity=None, orientation=None, selected=None, selectedpoints=None, showlegend=None, stackgaps=None, stackgroup=None, stream=None, text=None, textfont=None, textposition=None, textpositionsrc=None, textsrc=None, texttemplate=None, texttemplatesrc=None, uid=None, uirevision=None, unselected=None, visible=None, x=None, x0=None, xaxis=None, xcalendar=None, xhoverformat=None, xperiod=None, xperiod0=None, xperiodalignment=None, xsrc=None, y=None, y0=None, yaxis=None, ycalendar=None, yhoverformat=None, yperiod=None, yperiod0=None, yperiodalignment=None, ysrc=None, zorder=None, **kwargs)¶ Construct a new Scatter object
The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts. The data visualized as scatter point or lines is set in
x
andy
. Text (appearing either on the chart or on hover only) is viatext
. Bubble charts are achieved by settingmarker.size
and/ormarker.color
to numerical arrays.- Parameters
arg â dict of properties compatible with this constructor or an instance of
plotly.graph_objects.Scatter
alignmentgroup â Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently.
cliponaxis â Determines whether or not markers and text nodes are clipped about the subplot axes. To show markers and text nodes above axis lines and tick labels, make sure to set
xaxis.layer
andyaxis.layer
to below traces.connectgaps â Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected.
customdata â Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, âscatterâ traces also appends customdata items in the markers DOM elements
customdatasrc â Sets the source reference on Chart Studio Cloud for
customdata
.dx â Sets the x coordinate step. See
x0
for more info.dy â Sets the y coordinate step. See
y0
for more info.error_x â
plotly.graph_objects.scatter.ErrorX
instance or dict with compatible propertieserror_y â
plotly.graph_objects.scatter.ErrorY
instance or dict with compatible propertiesfill â Sets the area to fill with a solid color. Defaults to ânoneâ unless this trace is stacked, then it gets âtonextyâ (âtonextxâ) if
orientation
is âvâ (âhâ) Use withfillcolor
if not ânoneâ. âtozeroxâ and âtozeroyâ fill to x=0 and y=0 respectively. âtonextxâ and âtonextyâ fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like âtozeroxâ and âtozeroyâ. âtoselfâ connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. âtonextâ fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like âtoselfâ if there is no trace before it. âtonextâ should not be used if one trace does not enclose the other. Traces in astackgroup
will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order.fillcolor â Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. If fillgradient is specified, fillcolor is ignored except for setting the background color of the hover label, if any.
fillgradient â Sets a fill gradient. If not specified, the fillcolor is used instead.
fillpattern â Sets the pattern within the marker.
groupnorm â Only relevant when
stackgroup
is used, and only the firstgroupnorm
found in thestackgroup
will be used - including ifvisible
is âlegendonlyâ but not if it isfalse
. Sets the normalization for the sum of thisstackgroup
. With âfractionâ, the value of each trace at each location is divided by the sum of all trace values at that location. âpercentâ is the same but multiplied by 100 to show percentages. If there are multiple subplots, or multiple `stackgroup`s on one subplot, each will be normalized within its own set.hoverinfo â Determines which trace information appear on hover. If
none
orskip
are set, no information is displayed upon hovering. But, ifnone
is set, click and hover events are still fired.hoverinfosrc â Sets the source reference on Chart Studio Cloud for
hoverinfo
.hoverlabel â
plotly.graph_objects.scatter.Hoverlabel
instance or dict with compatible propertieshoveron â Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is âtoselfâ or âtonextâ and there are no markers or text, then the default is âfillsâ, otherwise it is âpointsâ.
hovertemplate â Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo
. Variables are inserted using %{variable}, for example ây: %{y}â as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, âxotherâ will be added to those with different x positions from the first point. An underscore before or after â(x|y)otherâ will add a space on that side, only when this field is shown. Numbers are formatted using d3-formatâs syntax %{variable:d3-format}, for example âPrice: %{y:$.2f}â. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-formatâs syntax %{variable|d3-time-format}, for example âDay: %{2019-01-01|%A}â. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available inhovertemplate
are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, every attributes that can be specified per-point (the ones that arearrayOk: true
) are available. Anything contained in tag<extra>
is displayed in the secondary box, for example<extra>%{fullData.name}</extra>
. To hide the secondary box completely, use an empty tag<extra></extra>
.hovertemplatesrc â Sets the source reference on Chart Studio Cloud for
hovertemplate
.hovertext â Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this traceâs (x,y) coordinates. To be seen, trace
hoverinfo
must contain a âtextâ flag.hovertextsrc â Sets the source reference on Chart Studio Cloud for
hovertext
.ids â Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
idssrc â Sets the source reference on Chart Studio Cloud for
ids
.legend â Sets the reference to a legend to show this trace 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.legendgroup â Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
legendgrouptitle â
plotly.graph_objects.scatter.Legendgrouptitle
instance or dict with compatible propertieslegendrank â Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with âreversedâ
legend.traceorder
they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.legendwidth â Sets the width (in px or fraction) of the legend for this trace.
line â
plotly.graph_objects.scatter.Line
instance or dict with compatible propertiesmarker â
plotly.graph_objects.scatter.Marker
instance or dict with compatible propertiesmeta â Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name
, graph, axis and colorbartitle.text
, annotationtext
rangeselector
,updatemenues
andsliders
label
text all supportmeta
. To access the tracemeta
values in an attribute in the same trace, simply use%{meta[i]}
wherei
is the index or key of themeta
item in question. To access tracemeta
in layout attributes, use%{data[n[.meta[i]}
wherei
is the index or key of themeta
andn
is the trace index.metasrc â Sets the source reference on Chart Studio Cloud for
meta
.mode â Determines the drawing mode for this scatter trace. If the provided
mode
includes âtextâ then thetext
elements appear at the coordinates. Otherwise, thetext
elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is âlines+markersâ. Otherwise, âlinesâ.name â Sets the trace name. The trace name appears as the legend item and on hover.
offsetgroup â Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up.
opacity â Sets the opacity of the trace.
orientation â Only relevant in the following cases: 1. when
scattermode
is set to âgroupâ. 2. whenstackgroup
is used, and only the firstorientation
found in thestackgroup
will be used - including ifvisible
is âlegendonlyâ but not if it isfalse
. Sets the stacking direction. With âvâ (âhâ), the y (x) values of subsequent traces are added. Also affects the default value offill
.selected â
plotly.graph_objects.scatter.Selected
instance or dict with compatible propertiesselectedpoints â Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the
unselected
are turned on for all points, whereas, any other non-array values means no selection all where theselected
andunselected
styles have no effect.showlegend â Determines whether or not an item corresponding to this trace is shown in the legend.
stackgaps â Only relevant when
stackgroup
is used, and only the firststackgaps
found in thestackgroup
will be used - including ifvisible
is âlegendonlyâ but not if it isfalse
. Determines how we handle locations at which other traces in this group have data but this one does not. With infer zero we insert a zero at these locations. With âinterpolateâ we linearly interpolate between existing values, and extrapolate a constant beyond the existing values.stackgroup â Set several scatter traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if
orientation
is âhâ). If blank or omitted this trace will not be stacked. Stacking also turnsfill
on by default, using âtonextyâ (âtonextxâ) iforientation
is âhâ (âvâ) and sets the defaultmode
to âlinesâ irrespective of point count. You can only stack on a numeric (linear or log) axis. Traces in astackgroup
will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order.stream â
plotly.graph_objects.scatter.Stream
instance or dict with compatible propertiestext â Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this traceâs (x,y) coordinates. If trace
hoverinfo
contains a âtextâ flag and âhovertextâ is not set, these elements will be seen in the hover labels.textfont â Sets the text font.
textposition â Sets the positions of the
text
elements with respects to the (x,y) coordinates.textpositionsrc â Sets the source reference on Chart Studio Cloud for
textposition
.textsrc â Sets the source reference on Chart Studio Cloud for
text
.texttemplate â Template string used for rendering the information text that appear on points. Note that this will override
textinfo
. Variables are inserted using %{variable}, for example ây: %{y}â. Numbers are formatted using d3-formatâs syntax %{variable:d3-format}, for example âPrice: %{y:$.2f}â. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-formatâs syntax %{variable|d3-time-format}, for example âDay: %{2019-01-01|%A}â. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that arearrayOk: true
) are available.texttemplatesrc â Sets the source reference on Chart Studio Cloud for
texttemplate
.uid â Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
uirevision â Controls persistence of some user-driven changes to the trace:
constraintrange
inparcoords
traces, as well as someeditable: true
modifications such asname
andcolorbar.title
. Defaults tolayout.uirevision
. Note that other user-driven trace attribute changes are controlled bylayout
attributes:trace.visible
is controlled bylayout.legend.uirevision
,selectedpoints
is controlled bylayout.selectionrevision
, andcolorbar.(x|y)
(accessible withconfig: {editable: true}
) is controlled bylayout.editrevision
. Trace changes are tracked byuid
, which only falls back on trace index if nouid
is provided. So if your app can add/remove traces before the end of thedata
array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auid
that stays with it as it moves.unselected â
plotly.graph_objects.scatter.Unselected
instance or dict with compatible propertiesvisible â Determines whether or not this trace is visible. If âlegendonlyâ, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible).
x â Sets the x coordinates.
x0 â Alternate to
x
. Builds a linear space of x coordinates. Use withdx
wherex0
is the starting coordinate anddx
the step.xaxis â Sets a reference between this traceâs x coordinates and a 2D cartesian x axis. If âxâ (the default value), the x coordinates refer to
layout.xaxis
. If âx2â, the x coordinates refer tolayout.xaxis2
, and so on.xcalendar â Sets the calendar system to use with
x
date data.xhoverformat â Sets the hover text formatting rulefor
x
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*By default the values are formatted usingxaxis.hoverformat
.xperiod â Only relevant when the axis
type
is âdateâ. Sets the period positioning in milliseconds or âM<n>â on the x axis. Special values in the form of âM<n>â could be used to declare the number of months. In this casen
must be a positive integer.xperiod0 â Only relevant when the axis
type
is âdateâ. Sets the base for period positioning in milliseconds or date string on the x0 axis. Whenx0period
is round number of weeks, thex0period0
by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.xperiodalignment â Only relevant when the axis
type
is âdateâ. Sets the alignment of data points on the x axis.xsrc â Sets the source reference on Chart Studio Cloud for
x
.y â Sets the y coordinates.
y0 â Alternate to
y
. Builds a linear space of y coordinates. Use withdy
wherey0
is the starting coordinate anddy
the step.yaxis â Sets a reference between this traceâs y coordinates and a 2D cartesian y axis. If âyâ (the default value), the y coordinates refer to
layout.yaxis
. If ây2â, the y coordinates refer tolayout.yaxis2
, and so on.ycalendar â Sets the calendar system to use with
y
date data.yhoverformat â Sets the hover text formatting rulefor
y
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*By default the values are formatted usingyaxis.hoverformat
.yperiod â Only relevant when the axis
type
is âdateâ. Sets the period positioning in milliseconds or âM<n>â on the y axis. Special values in the form of âM<n>â could be used to declare the number of months. In this casen
must be a positive integer.yperiod0 â Only relevant when the axis
type
is âdateâ. Sets the base for period positioning in milliseconds or date string on the y0 axis. Wheny0period
is round number of weeks, they0period0
by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.yperiodalignment â Only relevant when the axis
type
is âdateâ. Sets the alignment of data points on the y axis.ysrc â Sets the source reference on Chart Studio Cloud for
y
.zorder â Sets the layer on which this trace is displayed, relative to other SVG traces on the same subplot. SVG traces with higher
zorder
appear in front of those with lowerzorder
.
- Returns
- Return type
-
plotly.graph_objects
.scatter¶
-
class
plotly.graph_objects.scatter.
ErrorX
(arg=None, array=None, arrayminus=None, arrayminussrc=None, arraysrc=None, color=None, copy_ystyle=None, symmetric=None, thickness=None, traceref=None, tracerefminus=None, type=None, value=None, valueminus=None, visible=None, width=None, **kwargs)¶ -
property
array
¶ Sets the data corresponding the length of each error bar. Values are plotted relative to the underlying data.
The âarrayâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
arrayminus
¶ Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data.
The âarrayminusâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
arrayminussrc
¶ Sets the source reference on Chart Studio Cloud for
arrayminus
.The âarrayminussrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
arraysrc
¶ Sets the source reference on Chart Studio Cloud for
array
.The âarraysrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
color
¶ Sets the stroke color of the error bars.
- 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
copy_ystyle
¶ The âcopy_ystyleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
symmetric
¶ Determines whether or not the error bars have the same length in both direction (top/bottom for vertical bars, left/right for horizontal bars.
The âsymmetricâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
thickness
¶ Sets the thickness (in px) of the error bars.
- The âthicknessâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
traceref
¶ - The âtracerefâ 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
tracerefminus
¶ - The âtracerefminusâ 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
type
¶ Determines the rule used to generate the error bars. If âconstantâ, the bar lengths are of a constant value. Set this constant in
value
. If âpercentâ, the bar lengths correspond to a percentage of underlying data. Set this percentage invalue
. If âsqrtâ, the bar lengths correspond to the square of the underlying data. If âdataâ, the bar lengths are set with data setarray
.- The âtypeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpercentâ, âconstantâ, âsqrtâ, âdataâ]
- Returns
- Return type
Any
-
property
value
¶ Sets the value of either the percentage (if
type
is set to âpercentâ) or the constant (iftype
is set to âconstantâ) corresponding to the lengths of the error bars.- The âvalueâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
valueminus
¶ Sets the value of either the percentage (if
type
is set to âpercentâ) or the constant (iftype
is set to âconstantâ) corresponding to the lengths of the error bars in the bottom (left) direction for vertical (horizontal) bars- The âvalueminusâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
visible
¶ Determines whether or not this set of error bars is visible.
The âvisibleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
width
¶ Sets the width (in px) of the cross-bar at both ends of the error bars.
- The âwidthâ 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.scatter.
ErrorY
(arg=None, array=None, arrayminus=None, arrayminussrc=None, arraysrc=None, color=None, symmetric=None, thickness=None, traceref=None, tracerefminus=None, type=None, value=None, valueminus=None, visible=None, width=None, **kwargs)¶ -
property
array
¶ Sets the data corresponding the length of each error bar. Values are plotted relative to the underlying data.
The âarrayâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
arrayminus
¶ Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data.
The âarrayminusâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
arrayminussrc
¶ Sets the source reference on Chart Studio Cloud for
arrayminus
.The âarrayminussrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
arraysrc
¶ Sets the source reference on Chart Studio Cloud for
array
.The âarraysrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
color
¶ Sets the stroke color of the error bars.
- 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
symmetric
¶ Determines whether or not the error bars have the same length in both direction (top/bottom for vertical bars, left/right for horizontal bars.
The âsymmetricâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
thickness
¶ Sets the thickness (in px) of the error bars.
- The âthicknessâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
traceref
¶ - The âtracerefâ 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
tracerefminus
¶ - The âtracerefminusâ 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
type
¶ Determines the rule used to generate the error bars. If âconstantâ, the bar lengths are of a constant value. Set this constant in
value
. If âpercentâ, the bar lengths correspond to a percentage of underlying data. Set this percentage invalue
. If âsqrtâ, the bar lengths correspond to the square of the underlying data. If âdataâ, the bar lengths are set with data setarray
.- The âtypeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpercentâ, âconstantâ, âsqrtâ, âdataâ]
- Returns
- Return type
Any
-
property
value
¶ Sets the value of either the percentage (if
type
is set to âpercentâ) or the constant (iftype
is set to âconstantâ) corresponding to the lengths of the error bars.- The âvalueâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
valueminus
¶ Sets the value of either the percentage (if
type
is set to âpercentâ) or the constant (iftype
is set to âconstantâ) corresponding to the lengths of the error bars in the bottom (left) direction for vertical (horizontal) bars- The âvalueminusâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
visible
¶ Determines whether or not this set of error bars is visible.
The âvisibleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
width
¶ Sets the width (in px) of the cross-bar at both ends of the error bars.
- The âwidthâ 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.scatter.
Fillgradient
(arg=None, colorscale=None, start=None, stop=None, type=None, **kwargs)¶ -
property
colorscale
¶ Sets the fill gradient colors as a color scale. The color scale is interpreted as a gradient applied in the direction specified by âorientationâ, from the lowest to the highest value of the scatter plot along that axis, or from the center to the most distant point from it, if orientation is âradialâ.
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
start
¶ Sets the gradient start value. It is given as the absolute position on the axis determined by the orientiation. E.g., if orientation is âhorizontalâ, the gradient will be horizontal and start from the x-position given by start. If omitted, the gradient starts at the lowest value of the trace along the respective axis. Ignored if orientation is âradialâ.
- The âstartâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
stop
¶ Sets the gradient end value. It is given as the absolute position on the axis determined by the orientiation. E.g., if orientation is âhorizontalâ, the gradient will be horizontal and end at the x-position given by end. If omitted, the gradient ends at the highest value of the trace along the respective axis. Ignored if orientation is âradialâ.
- The âstopâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
type
¶ Sets the type/orientation of the color gradient for the fill. Defaults to ânoneâ.
- The âtypeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âradialâ, âhorizontalâ, âverticalâ, ânoneâ]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.scatter.
Fillpattern
(arg=None, bgcolor=None, bgcolorsrc=None, fgcolor=None, fgcolorsrc=None, fgopacity=None, fillmode=None, path=None, pathsrc=None, shape=None, shapesrc=None, size=None, sizesrc=None, solidity=None, soliditysrc=None, **kwargs)¶ -
property
bgcolor
¶ When there is no colorscale sets the color of background pattern fill. Defaults to a
marker.color
background whenfillmode
is âoverlayâ. Otherwise, defaults to a transparent background.- 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
A list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
property
bgcolorsrc
¶ Sets the source reference on Chart Studio Cloud for
bgcolor
.The âbgcolorsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
fgcolor
¶ When there is no colorscale sets the color of foreground pattern fill. Defaults to a
marker.color
background whenfillmode
is âreplaceâ. Otherwise, defaults to dark grey or white to increase contrast with thebgcolor
.- The âfgcolorâ 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
A list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
property
fgcolorsrc
¶ Sets the source reference on Chart Studio Cloud for
fgcolor
.The âfgcolorsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
fgopacity
¶ Sets the opacity of the foreground pattern fill. Defaults to a 0.5 when
fillmode
is âoverlayâ. Otherwise, defaults to 1.- The âfgopacityâ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
fillmode
¶ Determines whether
marker.color
should be used as a default tobgcolor
or afgcolor
.- The âfillmodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âreplaceâ, âoverlayâ]
- Returns
- Return type
Any
-
property
path
¶ Sets a custom path for pattern fill. Use with no
shape
orsolidity
, provide an SVG path string for the regions of the square from (0,0) to (size
,`size`) to color.- The âpathâ 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
pathsrc
¶ Sets the source reference on Chart Studio Cloud for
path
.The âpathsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
shape
¶ Sets the shape of the pattern fill. By default, no pattern is used for filling the area.
- The âshapeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ââ, â/â, â', âxâ, â-â, â|â, â+â, â.â]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
shapesrc
¶ Sets the source reference on Chart Studio Cloud for
shape
.The âshapesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
size
¶ Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern.
- The âsizeâ property is a number and may be specified as:
An int or float in the interval [0, inf]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
sizesrc
¶ Sets the source reference on Chart Studio Cloud for
size
.The âsizesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
solidity
¶ Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern.
- The âsolidityâ property is a number and may be specified as:
An int or float in the interval [0, 1]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
-
class
plotly.graph_objects.scatter.
Hoverlabel
(arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, showarrow=None, **kwargs)¶ -
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â]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
alignsrc
¶ Sets the source reference on Chart Studio Cloud for
align
.The âalignsrcâ 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 hover labels for this trace
- 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
A list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
property
bgcolorsrc
¶ Sets the source reference on Chart Studio Cloud for
bgcolor
.The âbgcolorsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
bordercolor
¶ Sets the border color of the hover labels for this trace.
- 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
A list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
property
bordercolorsrc
¶ Sets the source reference on Chart Studio Cloud for
bordercolor
.The âbordercolorsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
font
¶ Sets the font used in hover labels.
The âfontâ property is an instance of Font that may be specified as:
An instance of
plotly.graph_objects.scatter.hoverlabel.Font
A dict of string/value properties that will be passed to the Font 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 - 3
characters 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]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|numpy.ndarray
-
property
namelengthsrc
¶ Sets the source reference on Chart Studio Cloud for
namelength
.The ânamelengthsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
-
class
plotly.graph_objects.scatter.
Legendgrouptitle
(arg=None, font=None, text=None, **kwargs)¶ -
property
font
¶ Sets this legend groupâs title font.
The âfontâ property is an instance of Font that may be specified as:
An instance of
plotly.graph_objects.scatter.legendgrouptitle.Font
A dict of string/value properties that will be passed to the Font constructor
- Returns
- Return type
-
property
-
class
plotly.graph_objects.scatter.
Line
(arg=None, backoff=None, backoffsrc=None, color=None, dash=None, shape=None, simplify=None, smoothing=None, width=None, **kwargs)¶ -
property
backoff
¶ Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With âautoâ the lines would trim before markers if
marker.angleref
is set to âpreviousâ.- The âbackoffâ property is a number and may be specified as:
An int or float in the interval [0, inf]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
backoffsrc
¶ Sets the source reference on Chart Studio Cloud for
backoff
.The âbackoffsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
color
¶ Sets the line 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
dash
¶ 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 âdashâ 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
shape
¶ Determines the line shape. With âsplineâ the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes.
- The âshapeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âlinearâ, âsplineâ, âhvâ, âvhâ, âhvhâ, âvhvâ]
- Returns
- Return type
Any
-
property
simplify
¶ Simplifies lines by removing nearly-collinear points. When transitioning lines, it may be desirable to disable this so that the number of points along the resulting SVG path is unaffected.
The âsimplifyâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
smoothing
¶ Has an effect only if
shape
is set to âsplineâ Sets the amount of smoothing. 0 corresponds to no smoothing (equivalent to a âlinearâ shape).- The âsmoothingâ property is a number and may be specified as:
An int or float in the interval [0, 1.3]
- Returns
- Return type
int|float
-
property
width
¶ Sets the line width (in px).
- The âwidthâ 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.scatter.
Marker
(arg=None, angle=None, angleref=None, anglesrc=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, color=None, coloraxis=None, colorbar=None, colorscale=None, colorsrc=None, gradient=None, line=None, maxdisplayed=None, opacity=None, opacitysrc=None, reversescale=None, showscale=None, size=None, sizemin=None, sizemode=None, sizeref=None, sizesrc=None, standoff=None, standoffsrc=None, symbol=None, symbolsrc=None, **kwargs)¶ -
property
angle
¶ Sets the marker angle in respect to
angleref
.The âangleâ property is a angle (in degrees) that may be specified as a number between -180 and 180, or a list, numpy array or other iterable thereof. Numeric values outside this range are converted to the equivalent value (e.g. 270 is converted to -90).
- Returns
- Return type
int|float|numpy.ndarray
-
property
angleref
¶ Sets the reference for marker angle. With âpreviousâ, angle 0 points along the line from the previous point to this one. With âupâ, angle 0 points toward the top of the screen.
- The âanglerefâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpreviousâ, âupâ]
- Returns
- Return type
Any
-
property
anglesrc
¶ Sets the source reference on Chart Studio Cloud for
angle
.The âanglesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
autocolorscale
¶ Determines whether the colorscale is a default palette (
autocolorscale: true
) or the palette determined bymarker.colorscale
. Has an effect only if inmarker.color
is set to a numerical array. In casecolorscale
is unspecified orautocolorscale
is true, the default palette will be chosen according to whether numbers in thecolor
array 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 in
marker.color
) or the bounds set inmarker.cmin
andmarker.cmax
Has an effect only if inmarker.color
is set to a numerical array. Defaults tofalse
whenmarker.cmin
andmarker.cmax
are 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. Has an effect only if in
marker.color
is set to a numerical array. Value should have the same units as inmarker.color
and if set,marker.cmin
must 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
marker.cmin
and/ormarker.cmax
to be equidistant to this point. Has an effect only if inmarker.color
is set to a numerical array. Value should have the same units as inmarker.color
. Has no effect whenmarker.cauto
isfalse
.- 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. Has an effect only if in
marker.color
is set to a numerical array. Value should have the same units as inmarker.color
and if set,marker.cmax
must 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
color
¶ Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to
marker.cmin
andmarker.cmax
if set.- 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
A number that will be interpreted as a color according to scatter.marker.colorscale
A list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
property
coloraxis
¶ Sets a reference to a shared color axis. References to these shared color axes are âcoloraxisâ, âcoloraxis2â, âcoloraxis3â, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis
,layout.coloraxis2
, etc. Note that multiple color scales can be linked to the same color axis.The âcoloraxisâ property is an identifier of a particular subplot, of type âcoloraxisâ, that may be specified as the string âcoloraxisâ optionally followed by an integer >= 1 (e.g. âcoloraxisâ, âcoloraxis1â, âcoloraxis2â, âcoloraxis3â, etc.)
- Returns
- Return type
-
property
colorbar
¶ The âcolorbarâ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.scatter.marker.ColorBar
A dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale
¶ Sets the colorscale. Has an effect only if in
marker.color
is set to a numerical array. 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, usemarker.cmin
andmarker.cmax
. Alternatively,colorscale
may be a palette name string of the following list: Blackbody,B luered,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
colorsrc
¶ Sets the source reference on Chart Studio Cloud for
color
.The âcolorsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
gradient
¶ The âgradientâ property is an instance of Gradient that may be specified as:
An instance of
plotly.graph_objects.scatter.marker.Gradient
A dict of string/value properties that will be passed to the Gradient constructor
- Returns
- Return type
-
property
line
¶ The âlineâ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.scatter.marker.Line
A dict of string/value properties that will be passed to the Line constructor
- Returns
- Return type
-
property
maxdisplayed
¶ Sets a maximum number of points to be drawn on the graph. 0 corresponds to no limit.
- The âmaxdisplayedâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
opacity
¶ Sets the marker opacity.
- The âopacityâ property is a number and may be specified as:
An int or float in the interval [0, 1]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
opacitysrc
¶ Sets the source reference on Chart Studio Cloud for
opacity
.The âopacitysrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
reversescale
¶ Reverses the color mapping if true. Has an effect only if in
marker.color
is set to a numerical array. If true,marker.cmin
will correspond to the last color in the array andmarker.cmax
will correspond to the first color.The âreversescaleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
showscale
¶ Determines whether or not a colorbar is displayed for this trace. Has an effect only if in
marker.color
is set to a numerical array.The âshowscaleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
size
¶ Sets the marker size (in px).
- The âsizeâ property is a number and may be specified as:
An int or float in the interval [0, inf]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
sizemin
¶ Has an effect only if
marker.size
is set to a numerical array. Sets the minimum size (in px) of the rendered marker points.- The âsizeminâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
sizemode
¶ Has an effect only if
marker.size
is set to a numerical array. Sets the rule for which the data insize
is converted to pixels.- The âsizemodeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âdiameterâ, âareaâ]
- Returns
- Return type
Any
-
property
sizeref
¶ Has an effect only if
marker.size
is set to a numerical array. Sets the scale factor used to determine the rendered size of marker points. Use withsizemin
andsizemode
.- The âsizerefâ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
sizesrc
¶ Sets the source reference on Chart Studio Cloud for
size
.The âsizesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
standoff
¶ Moves the marker away from the data point in the direction of
angle
(in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it.- The âstandoffâ property is a number and may be specified as:
An int or float in the interval [0, inf]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
standoffsrc
¶ Sets the source reference on Chart Studio Cloud for
standoff
.The âstandoffsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
symbol
¶ Sets the marker symbol type. Adding 100 is equivalent to appending â-openâ to a symbol name. Adding 200 is equivalent to appending â-dotâ to a symbol name. Adding 300 is equivalent to appending â-open-dotâ or âdot-openâ to a symbol name.
- The âsymbolâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[0, â0â, âcircleâ, 100, â100â, âcircle-openâ, 200, â200â, âcircle-dotâ, 300, â300â, âcircle-open-dotâ, 1, â1â, âsquareâ, 101, â101â, âsquare-openâ, 201, â201â, âsquare-dotâ, 301, â301â, âsquare-open-dotâ, 2, â2â, âdiamondâ, 102, â102â, âdiamond-openâ, 202, â202â, âdiamond-dotâ, 302, â302â, âdiamond-open-dotâ, 3, â3â, âcrossâ, 103, â103â, âcross-openâ, 203, â203â, âcross-dotâ, 303, â303â, âcross-open-dotâ, 4, â4â, âxâ, 104, â104â, âx-openâ, 204, â204â, âx-dotâ, 304, â304â, âx-open-dotâ, 5, â5â, âtriangle-upâ, 105, â105â, âtriangle-up-openâ, 205, â205â, âtriangle-up-dotâ, 305, â305â, âtriangle-up-open-dotâ, 6, â6â, âtriangle-downâ, 106, â106â, âtriangle-down-openâ, 206, â206â, âtriangle-down-dotâ, 306, â306â, âtriangle-down-open-dotâ, 7, â7â, âtriangle-leftâ, 107, â107â, âtriangle-left-openâ, 207, â207â, âtriangle-left-dotâ, 307, â307â, âtriangle-left-open-dotâ, 8, â8â, âtriangle-rightâ, 108, â108â, âtriangle-right-openâ, 208, â208â, âtriangle-right-dotâ, 308, â308â, âtriangle-right-open-dotâ, 9, â9â, âtriangle-neâ, 109, â109â, âtriangle-ne-openâ, 209, â209â, âtriangle-ne-dotâ, 309, â309â, âtriangle-ne-open-dotâ, 10, â10â, âtriangle-seâ, 110, â110â, âtriangle-se-openâ, 210, â210â, âtriangle-se-dotâ, 310, â310â, âtriangle-se-open-dotâ, 11, â11â, âtriangle-swâ, 111, â111â, âtriangle-sw-openâ, 211, â211â, âtriangle-sw-dotâ, 311, â311â, âtriangle-sw-open-dotâ, 12, â12â, âtriangle-nwâ, 112, â112â, âtriangle-nw-openâ, 212, â212â, âtriangle-nw-dotâ, 312, â312â, âtriangle-nw-open-dotâ, 13, â13â, âpentagonâ, 113, â113â, âpentagon-openâ, 213, â213â, âpentagon-dotâ, 313, â313â, âpentagon-open-dotâ, 14, â14â, âhexagonâ, 114, â114â, âhexagon-openâ, 214, â214â, âhexagon-dotâ, 314, â314â, âhexagon-open-dotâ, 15, â15â, âhexagon2â, 115, â115â, âhexagon2-openâ, 215, â215â, âhexagon2-dotâ, 315, â315â, âhexagon2-open-dotâ, 16, â16â, âoctagonâ, 116, â116â, âoctagon-openâ, 216, â216â, âoctagon-dotâ, 316, â316â, âoctagon-open-dotâ, 17, â17â, âstarâ, 117, â117â, âstar-openâ, 217, â217â, âstar-dotâ, 317, â317â, âstar-open-dotâ, 18, â18â, âhexagramâ, 118, â118â, âhexagram-openâ, 218, â218â, âhexagram-dotâ, 318, â318â, âhexagram-open-dotâ, 19, â19â, âstar-triangle-upâ, 119, â119â, âstar-triangle-up-openâ, 219, â219â, âstar-triangle-up-dotâ, 319, â319â, âstar-triangle-up-open-dotâ, 20, â20â, âstar-triangle-downâ, 120, â120â, âstar-triangle-down-openâ, 220, â220â, âstar-triangle-down-dotâ, 320, â320â, âstar-triangle-down-open-dotâ, 21, â21â, âstar-squareâ, 121, â121â, âstar-square-openâ, 221, â221â, âstar-square-dotâ, 321, â321â, âstar-square-open-dotâ, 22, â22â, âstar-diamondâ, 122, â122â, âstar-diamond-openâ, 222, â222â, âstar-diamond-dotâ, 322, â322â, âstar-diamond-open-dotâ, 23, â23â, âdiamond-tallâ, 123, â123â, âdiamond-tall-openâ, 223, â223â, âdiamond-tall-dotâ, 323, â323â, âdiamond-tall-open-dotâ, 24, â24â, âdiamond-wideâ, 124, â124â, âdiamond-wide-openâ, 224, â224â, âdiamond-wide-dotâ, 324, â324â, âdiamond-wide-open-dotâ, 25, â25â, âhourglassâ, 125, â125â, âhourglass-openâ, 26, â26â, âbowtieâ, 126, â126â, âbowtie-openâ, 27, â27â, âcircle-crossâ, 127, â127â, âcircle-cross-openâ, 28, â28â, âcircle-xâ, 128, â128â, âcircle-x-openâ, 29, â29â, âsquare-crossâ, 129, â129â, âsquare-cross-openâ, 30, â30â, âsquare-xâ, 130, â130â, âsquare-x-openâ, 31, â31â, âdiamond-crossâ, 131, â131â, âdiamond-cross-openâ, 32, â32â, âdiamond-xâ, 132, â132â, âdiamond-x-openâ, 33, â33â, âcross-thinâ, 133, â133â, âcross-thin-openâ, 34, â34â, âx-thinâ, 134, â134â, âx-thin-openâ, 35, â35â, âasteriskâ, 135, â135â, âasterisk-openâ, 36, â36â, âhashâ, 136, â136â, âhash-openâ, 236, â236â, âhash-dotâ, 336, â336â, âhash-open-dotâ, 37, â37â, ây-upâ, 137, â137â, ây-up-openâ, 38, â38â, ây-downâ, 138, â138â, ây-down-openâ, 39, â39â, ây-leftâ, 139, â139â, ây-left-openâ, 40, â40â, ây-rightâ, 140, â140â, ây-right-openâ, 41, â41â, âline-ewâ, 141, â141â, âline-ew-openâ, 42, â42â, âline-nsâ, 142, â142â, âline-ns-openâ, 43, â43â, âline-neâ, 143, â143â, âline-ne-openâ, 44, â44â, âline-nwâ, 144, â144â, âline-nw-openâ, 45, â45â, âarrow-upâ, 145, â145â, âarrow-up-openâ, 46, â46â, âarrow-downâ, 146, â146â, âarrow-down-openâ, 47, â47â, âarrow-leftâ, 147, â147â, âarrow-left-openâ, 48, â48â, âarrow-rightâ, 148, â148â, âarrow-right-openâ, 49, â49â, âarrow-bar-upâ, 149, â149â, âarrow-bar-up-openâ, 50, â50â, âarrow-bar-downâ, 150, â150â, âarrow-bar-down-openâ, 51, â51â, âarrow-bar-leftâ, 151, â151â, âarrow-bar-left-openâ, 52, â52â, âarrow-bar-rightâ, 152, â152â, âarrow-bar-right-openâ, 53, â53â, âarrowâ, 153, â153â, âarrow-openâ, 54, â54â, âarrow-wideâ, 154, â154â, âarrow-wide-openâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
-
class
plotly.graph_objects.scatter.
Selected
(arg=None, marker=None, textfont=None, **kwargs)¶ -
property
marker
¶ The âmarkerâ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.scatter.selected.Marker
A dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
textfont
¶ The âtextfontâ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.scatter.selected.Textfont
A dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property
-
class
plotly.graph_objects.scatter.
Stream
(arg=None, maxpoints=None, token=None, **kwargs)¶ -
property
maxpoints
¶ Sets the maximum number of points to keep on the plots from an incoming stream. If
maxpoints
is set to 50, only the newest 50 points will be displayed on the plot.- The âmaxpointsâ property is a number and may be specified as:
An int or float in the interval [0, 10000]
- Returns
- Return type
int|float
-
property
token
¶ The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details.
- The âtokenâ property is a string and must be specified as:
A non-empty string
- Returns
- Return type
-
property
-
class
plotly.graph_objects.scatter.
Textfont
(arg=None, color=None, colorsrc=None, family=None, familysrc=None, lineposition=None, linepositionsrc=None, shadow=None, shadowsrc=None, size=None, sizesrc=None, style=None, stylesrc=None, textcase=None, textcasesrc=None, variant=None, variantsrc=None, weight=None, weightsrc=None, **kwargs)¶ -
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
A list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
property
colorsrc
¶ Sets the source reference on Chart Studio Cloud for
color
.The âcolorsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- 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
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
familysrc
¶ Sets the source reference on Chart Studio Cloud for
family
.The âfamilysrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- 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â)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
linepositionsrc
¶ Sets the source reference on Chart Studio Cloud for
lineposition
.The âlinepositionsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
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
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
shadowsrc
¶ Sets the source reference on Chart Studio Cloud for
shadow
.The âshadowsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- 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]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
sizesrc
¶ Sets the source reference on Chart Studio Cloud for
size
.The âsizesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
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â]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
stylesrc
¶ Sets the source reference on Chart Studio Cloud for
style
.The âstylesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
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â]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
textcasesrc
¶ Sets the source reference on Chart Studio Cloud for
textcase
.The âtextcasesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
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â]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
variantsrc
¶ Sets the source reference on Chart Studio Cloud for
variant
.The âvariantsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
weight
¶ Sets the weight (or boldness) of the font.
- The âweightâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [1, 1000] OR exactly one of [ânormalâ, âboldâ] (e.g. âboldâ)
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|numpy.ndarray
-
property
-
class
plotly.graph_objects.scatter.
Unselected
(arg=None, marker=None, textfont=None, **kwargs)¶ -
property
marker
¶ The âmarkerâ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.scatter.unselected.Marker
A dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
textfont
¶ The âtextfontâ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.scatter.unselected.Textfont
A dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property