You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A `facet grid` is a generalization of a scatterplot matrix where we can "facet" a row and/or column by another variable. Given some tabular data, stored in a `pandas.DataFrame`, we can plot one variable against another to form a regular scatter plot, _and_ we can pick a third faceting variable to form panels along the rows and/or columns to segment the data even further, forming a bunch of panels. We can also assign a coloring rule or a heatmap based on a color variable to color the plot.
Facet plots, also known as trellis plots or small multiples, are figures made up of multiple subplots which have the same set of axes, where each subplot shows a subset of the data. While it is straightforward to use `plotly`'s [subplot capabilities]
43
+
(/python/subplots/) to make such figures, it's far easier to use the built-in `facet_row` and `facet_col` arguments in the various [Plotly Express](/python/next/plotly-express/) functions.
Copy file name to clipboardExpand all lines: python/scatter-plots-on-maps.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ jupyter:
40
40
41
41
### Geographical Scatter Plot with px.scatter_geo
42
42
43
-
For data available as a tidy pandas DataFrame, use `px.scatter_geo` for a geographical scatter plot. The `size` argument is used to set the size of markers from a given column of the DataFrame.
43
+
For data available as a tidy pandas DataFrame, use the [Plotly Express](/python/next/plotly-express/) function `px.scatter_geo` for a geographical scatter plot. The `size` argument is used to set the size of markers from a given column of the DataFrame.
Copy file name to clipboardExpand all lines: python/scattermapbox.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,10 +37,24 @@ jupyter:
37
37
title: Python Scatter Plots with Mapbox | Plotly
38
38
---
39
39
40
+
GOTTA PX
41
+
40
42
#### Mapbox Access Token
41
43
42
44
To plot on Mapbox maps with Plotly you'll need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio) which you can add to your [Plotly settings](https://plot.ly/settings/mapbox). If you're using a Chart Studio Enterprise server, please see additional instructions here: https://help.plot.ly/mapbox-atlas/.
43
45
46
+
### Basic example with Plotly Express
47
+
48
+
For data available as a tidy pandas DataFrame, use the [Plotly Express](/python/next/plotly-express/) function `px.scatter_mapbox` for a scatter plot on a tile map.
0 commit comments