plotly.graph_objects
.Scattermap¶
-
class
plotly.graph_objects.
Scattermap
(arg=None, below=None, cluster=None, connectgaps=None, customdata=None, customdatasrc=None, fill=None, fillcolor=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, lat=None, latsrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, line=None, lon=None, lonsrc=None, marker=None, meta=None, metasrc=None, mode=None, name=None, opacity=None, selected=None, selectedpoints=None, showlegend=None, stream=None, subplot=None, text=None, textfont=None, textposition=None, textsrc=None, texttemplate=None, texttemplatesrc=None, uid=None, uirevision=None, unselected=None, visible=None, **kwargs)¶ -
__init__
(arg=None, below=None, cluster=None, connectgaps=None, customdata=None, customdatasrc=None, fill=None, fillcolor=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, lat=None, latsrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, line=None, lon=None, lonsrc=None, marker=None, meta=None, metasrc=None, mode=None, name=None, opacity=None, selected=None, selectedpoints=None, showlegend=None, stream=None, subplot=None, text=None, textfont=None, textposition=None, textsrc=None, texttemplate=None, texttemplatesrc=None, uid=None, uirevision=None, unselected=None, visible=None, **kwargs)¶ Construct a new Scattermap object
The data visualized as scatter point, lines or marker symbols on a MapLibre GL geographic map is provided by longitude/latitude pairs in
lon
andlat
.- Parameters
arg â dict of properties compatible with this constructor or an instance of
plotly.graph_objects.Scattermap
below â Determines if this scattermap traceâs layers are to be inserted before the layer with the specified ID. By default, scattermap layers are inserted above all the base layers. To place the scattermap layers above every other layer, set
below
to ââââ.cluster â
plotly.graph_objects.scattermap.Cluster
instance or dict with compatible propertiesconnectgaps â 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
.fill â Sets the area to fill with a solid color. Use with
fillcolor
if not ânoneâ. âtoselfâ connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape.fillcolor â Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.
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.scattermap.Hoverlabel
instance or dict with compatible propertieshovertemplate â 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 (lon,lat) 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 (lon,lat) 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
.lat â Sets the latitude coordinates (in degrees North).
latsrc â Sets the source reference on Chart Studio Cloud for
lat
.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.scattermap.Legendgrouptitl e
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.scattermap.Line
instance or dict with compatible propertieslon â Sets the longitude coordinates (in degrees East).
lonsrc â Sets the source reference on Chart Studio Cloud for
lon
.marker â
plotly.graph_objects.scattermap.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.name â Sets the trace name. The trace name appears as the legend item and on hover.
opacity â Sets the opacity of the trace.
selected â
plotly.graph_objects.scattermap.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.
stream â
plotly.graph_objects.scattermap.Stream
instance or dict with compatible propertiessubplot â Sets a reference between this traceâs data coordinates and a map subplot. If âmapâ (the default value), the data refer to
layout.map
. If âmap2â, the data refer tolayout.map2
, and so on.text â Sets text elements associated with each (lon,lat) 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 (lon,lat) 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 icon text font (color=map.layer.paint.text- color, size=map.layer.layout.text-size). Has an effect only when
type
is set to âsymbolâ.textposition â Sets the positions of the
text
elements with respects to the (x,y) coordinates.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. Finally, the template string has access to variableslat
,lon
andtext
.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.scattermap.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).
- Returns
- Return type
-
plotly.graph_objects
.scattermap¶
-
class
plotly.graph_objects.scattermap.
Cluster
(arg=None, color=None, colorsrc=None, enabled=None, maxzoom=None, opacity=None, opacitysrc=None, size=None, sizesrc=None, step=None, stepsrc=None, **kwargs)¶ -
property
color
¶ Sets the color for each cluster step.
- 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
enabled
¶ Determines whether clustering is enabled or disabled.
The âenabledâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
maxzoom
¶ Sets the maximum zoom level. At zoom levels equal to or greater than this, points will never be clustered.
- The âmaxzoomâ property is a number and may be specified as:
An int or float in the interval [0, 24]
- 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
size
¶ Sets the size for each cluster step.
- 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
step
¶ Sets how many points it takes to create a cluster or advance to the next cluster step. Use this in conjunction with arrays for
size
and / orcolor
. If an integer, steps start at multiples of this number. If an array, each step extends from the given value until one less than the next value.- The âstepâ 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
-
class
plotly.graph_objects.scattermap.
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.scattermap.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.scattermap.
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.scattermap.legendgrouptitle.Font
A dict of string/value properties that will be passed to the Font constructor
- Returns
- Return type
-
property
-
class
plotly.graph_objects.scattermap.
Line
(arg=None, color=None, width=None, **kwargs)¶ -
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
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.scattermap.
Marker
(arg=None, allowoverlap=None, angle=None, anglesrc=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, color=None, coloraxis=None, colorbar=None, colorscale=None, colorsrc=None, opacity=None, opacitysrc=None, reversescale=None, showscale=None, size=None, sizemin=None, sizemode=None, sizeref=None, sizesrc=None, symbol=None, symbolsrc=None, **kwargs)¶ -
property
allowoverlap
¶ Flag to draw all symbols, even if they overlap.
The âallowoverlapâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
angle
¶ Sets the marker orientation from true North, in degrees clockwise. When using the âautoâ default, no rotation would be applied in perspective views which is different from using a zero angle.
- The âangleâ property is a number and may be specified as:
An int or float
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
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 scattermap.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.scattermap.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
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
symbol
¶ //www.mapbox.com/maki- icons/ Note that the array
marker.color
andmarker.size
are only available for âcircleâ symbols.- The âsymbolâ 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
- Type
Sets the marker symbol. Full list
- Type
https
-
property
-
class
plotly.graph_objects.scattermap.
Selected
(arg=None, marker=None, **kwargs)¶ -
property
marker
¶ The âmarkerâ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.scattermap.selected.Marker
A dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
-
class
plotly.graph_objects.scattermap.
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.scattermap.
Textfont
(arg=None, color=None, family=None, size=None, style=None, weight=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
- 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
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
-
class
plotly.graph_objects.scattermap.
Unselected
(arg=None, marker=None, **kwargs)¶ -
property
marker
¶ The âmarkerâ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.scattermap.unselected.Marker
A dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property