data_frame (DataFrame or array-like or dict) – This argument needs to be passed for column names (and not keywordnames) to be used. Array-like and dict are transformed internally to apandas DataFrame. Optional: if missing, a DataFrame gets constructedunder the hood using the other arguments.
lat (str or int or Series or array-like) – Either a name of a column in
data_frame
, or a pandas Series orarray_like object. Values from this column or array_like are used toposition marks according to latitude on a map.lon (str or int or Series or array-like) – Either a name of a column in
data_frame
, or a pandas Series orarray_like object. Values from this column or array_like are used toposition marks according to longitude on a map.color (str or int or Series or array-like) – Either a name of a column in
data_frame
, or a pandas Series orarray_like object. Values from this column or array_like are used toassign color to marks.text (str or int or Series or array-like) – Either a name of a column in
data_frame
, or a pandas Series orarray_like object. Values from this column or array_like appear in thefigure as text labels.hover_name (str or int or Series or array-like) – Either a name of a column in
data_frame
, or a pandas Series orarray_like object. Values from this column or array_like appear in boldin the hover tooltip.hover_data (str, or list of str or int, or Series or array-like, or dict) – Either a name or list of names of columns in
data_frame
, or pandasSeries, or array_like objects or a dict with column names as keys, withvalues True (for default formatting) False (in order to remove thiscolumn from hover information), or a formatting string, for example‘:.3f’ or ‘|%a’ or list-like data to appear in the hover tooltip ortuples with a bool or formatting string as first element, and list-likedata to appear in hover as second element Values from these columnsappear as extra data in the hover tooltip.custom_data (str, or list of str or int, or Series or array-like) – Either name or list of names of columns in
data_frame
, or pandasSeries, or array_like objects Values from these columns are extra data,to be used in widgets or Dash callbacks for example. This data is notuser-visible but is included in events emitted by the figure (lassoselection etc.)size (str or int or Series or array-like) – Either a name of a column in
data_frame
, or a pandas Series orarray_like object. Values from this column or array_like are used toassign mark sizes.animation_frame (str or int or Series or array-like) – Either a name of a column in
data_frame
, or a pandas Series orarray_like object. Values from this column or array_like are used toassign marks to animation frames.animation_group (str or int or Series or array-like) – Either a name of a column in
data_frame
, or a pandas Series orarray_like object. Values from this column or array_like are used toprovide object-constancy across animation frames: rows with matching`animation_group`s will be treated as if they describe the same objectin each frame.category_orders (dict with str keys and list of str values (default
{}
)) – By default, in Python 3.6+, the order of categorical values in axes,legends and facets depends on the order in which these values are firstencountered indata_frame
(and no order is guaranteed by default inPython below 3.6). This parameter is used to force a specific orderingof values per column. The keys of this dict should correspond to columnnames, and the values should be lists of strings corresponding to thespecific display order desired.labels (dict with str keys and str values (default
{}
)) – By default, column names are used in the figure for axis titles, legendentries and hovers. This parameter allows this to be overridden. Thekeys of this dict should correspond to column names, and the valuesshould correspond to the desired label to be displayed.color_discrete_sequence (list of str) – Strings should define valid CSS-colors. When
color
is set and thevalues in the corresponding column are not numeric, values in thatcolumn are assigned colors by cycling throughcolor_discrete_sequence
in the order described incategory_orders
, unless the value ofcolor
is a key incolor_discrete_map
. Various useful colorsequences are available in theplotly.express.colors
submodules,specificallyplotly.express.colors.qualitative
.color_discrete_map (dict with str keys and str values (default
{}
)) – String values should define valid CSS-colors Used to overridecolor_discrete_sequence
to assign a specific colors to markscorresponding with specific values. Keys incolor_discrete_map
shouldbe values in the column denoted bycolor
. Alternatively, if thevalues ofcolor
are valid colors, the string'identity'
may bepassed to cause them to be used directly.color_continuous_scale (list of str) – Strings should define valid CSS-colors This list is used to build acontinuous color scale when the column denoted by
color
containsnumeric data. Various useful color scales are available in theplotly.express.colors
submodules, specificallyplotly.express.colors.sequential
,plotly.express.colors.diverging
andplotly.express.colors.cyclical
.range_color (list of two numbers) – If provided, overrides auto-scaling on the continuous color scale.
color_continuous_midpoint (number (default
None
)) – If set, computes the bounds of the continuous color scale to have thedesired midpoint. Setting this value is recommended when usingplotly.express.colors.diverging
color scales as the inputs tocolor_continuous_scale
.opacity (float) – Value between 0 and 1. Sets the opacity for markers.
size_max (int (default
20
)) – Set the maximum mark size when usingsize
.zoom (int (default
8
)) – Between 0 and 20. Sets map zoom level.center (dict) – Dict keys are
'lat'
and'lon'
Sets the center point of the map.map_style (str (default
'basic'
)) – Identifier of base map style. Allowed values are'basic'
,'carto-darkmatter'
,'carto-darkmatter-nolabels'
,'carto-positron'
,'carto-positron-nolabels'
,'carto-voyager'
,'carto-voyager-nolabels'
,'dark'
,'light'
,'open-street-map'
,'outdoors'
,'satellite'
,'satellite-streets'
,'streets'
,'white-bg'
.title (str) – The figure title.
template (str or dict or plotly.graph_objects.layout.Template instance) – The figure template name (must be a key in plotly.io.templates) ordefinition.
width (int (default
None
)) – The figure width in pixels.height (int (default
None
)) – The figure height in pixels.
plotly.express.scatter_map — 5.24.0 documentation (2024)
References
- https://labs.bosicloud.com/help/api/graphql/index.md
- https://www.datastax.com/guides/graph-rag
- https://plotly.com/python-api-reference/generated/plotly.graph_objects.Heatmap.html?highlight=racing%20position
- https://plotly.com/python-api-reference/generated/plotly.express.scatter_map.html
Top Articles
Easy Thanksgiving Turkey Recipe
24 Heirloom Tomato Recipes to Make While These Big, Juicy Fruits Are in Season
Craigslist Microwave
Vassar Hospital Patient Portal
Liat Benezra Hers Commercial
Koop Ford occasions in f-150_ - AutoScout24
Uwa Self Service Portal
Nms Atlantid
Ixl Jockey Hollows
123Movies Another Cinderella Story
Purdue 247 Football
Tyrones Unblocked Games Basketball Stars
Latest Posts
Deliciously Herby Persian Bean Soup with Croutons | Rebel Recipes
Recipe This | How To Convert Any Recipe To The Air Fryer
Article information
Author: Barbera Armstrong
Last Updated:
Views: 6025
Rating: 4.9 / 5 (79 voted)
Reviews: 94% of readers found this page helpful
Author information
Name: Barbera Armstrong
Birthday: 1992-09-12
Address: Suite 993 99852 Daugherty Causeway, Ritchiehaven, VT 49630
Phone: +5026838435397
Job: National Engineer
Hobby: Listening to music, Board games, Photography, Ice skating, LARPing, Kite flying, Rugby
Introduction: My name is Barbera Armstrong, I am a lovely, delightful, cooperative, funny, enchanting, vivacious, tender person who loves writing and wants to share my knowledge and understanding with you.