Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add docs updates for Plotly.py v6.3 #5269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
camdecoster merged 21 commits into main from docs-update-next-release
Aug 12, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4911830
Add zero line layer example
LiamConnors Jul 7, 2025
3465529
add pattern path example
LiamConnors Jul 7, 2025
ec640bd
add max height example
LiamConnors Jul 7, 2025
72fb5cd
Merge branch 'main' into docs-update-next-release
LiamConnors Jul 28, 2025
d9ec816
Add modebar button disable example
LiamConnors Jul 29, 2025
f19bbf8
Add Minor Log Labels example
LiamConnors Jul 29, 2025
2ecd080
Add unifiedhovertitle example
LiamConnors Jul 29, 2025
60a377c
Make small formatting changes
LiamConnors Jul 29, 2025
3ecefef
add map updates
LiamConnors Aug 5, 2025
75af440
fix wording
LiamConnors Aug 5, 2025
3d9ea84
Merge branch 'main' into docs-update-next-release
LiamConnors Aug 5, 2025
ce6ae1b
Update doc/python/choropleth-maps.md
LiamConnors Aug 6, 2025
377db50
Update doc/python/map-configuration.md
LiamConnors Aug 6, 2025
cd57c41
Update doc/python/map-configuration.md
LiamConnors Aug 6, 2025
d4d9a3c
Update doc/python/map-configuration.md
LiamConnors Aug 6, 2025
16e454a
Make small updates
LiamConnors Aug 6, 2025
7ae4694
Merge branch 'docs-update-next-release' of https://github.com/plotly/...
LiamConnors Aug 6, 2025
a03c3de
Update legend.md
LiamConnors Aug 6, 2025
c72d9a1
Update doc/python/map-configuration.md
LiamConnors Aug 6, 2025
052efc9
Update doc/python/choropleth-maps.md
LiamConnors Aug 6, 2025
c7a38b6
Merge remote-tracking branch 'origin/main' into docs-update-next-release
camdecoster Aug 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add map updates
  • Loading branch information
LiamConnors committed Aug 5, 2025
commit 3ecefefa7d8288d94d2e93ea4de4fcaafd942f5d
9 changes: 5 additions & 4 deletions doc/python/choropleth-maps.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,16 @@ fig.show()
Plotly comes with two built-in geometries which do not require an external GeoJSON file:

1. USA States
2. Countries as defined in the Natural Earth dataset.
2. Countries

**Note and disclaimer:** cultural (as opposed to physical) features are by definition subject to change, debate and dispute. Plotly includes data from Natural Earth "as-is" and defers to the [Natural Earth policy regarding disputed borders](https://www.naturalearthdata.com/downloads/50m-cultural-vectors/50m-admin-0-countries-2/) which read:
In **Plotly.py 6.3 and later**, the built-in countries geometry is created from the following sources:
- [UN data](https://geoportal.un.org/arcgis/sharing/rest/content/items/d7caaff3ef4b4f7c82689b7c4694ad92/data) for country borders, coastlines, and land layers.
- Natural Earth data for oceans, lakes, rivers, and subunit layers.

> Natural Earth Vector draws boundaries of countries according to defacto status. We show who actually controls the situation on the ground.
In **earlier versions of Plotly.py**, the built-in countries geometry is based on Natural Earth data only. Plotly includes data from Natural Earth "as-is". This dataset draws boundaries of countries according to defacto status. See the [Natural Earth page for more details](https://www.naturalearthdata.com/downloads/50m-cultural-vectors/50m-admin-0-countries-2/).

To use the built-in countries geometry, provide `locations` as [three-letter ISO country codes](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3).


```python
import plotly.express as px

Expand Down
14 changes: 11 additions & 3 deletions doc/python/map-configuration.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,15 @@ Geo maps are outline-based maps. If your figure is created with a `px.scatter_ge

### Physical Base Maps

Plotly Geo maps have a built-in base map layer composed of "physical" and "cultural" (i.e. administrative border) data from the [Natural Earth Dataset](https://www.naturalearthdata.com/downloads/). Various lines and area fills can be shown or hidden, and their color and line-widths specified. In the [default `plotly` template](/python/templates/), a map frame and physical features such as a coastal outline and filled land areas are shown, at a small-scale 1:110m resolution:
Plotly Geo maps have a built-in base map layer composed of "physical" and "cultural" (i.e. administrative border) data.

In **Plotly.py 6.3 and later**, the base map layer is created from the following sources:
- [UN data](https://geoportal.un.org/arcgis/sharing/rest/content/items/d7caaff3ef4b4f7c82689b7c4694ad92/data) for country borders, coastlines, and land layers.
- Natural Earth data for oceans, lakes, rivers, and subunit layers.

In **earlier versions of Plotly.py**, the base map layer is based on Natural Earth data only. Plotly includes data from Natural Earth "as-is". This dataset draws boundaries of countries according to defacto status. See the [Natural Earth page for more details](https://www.naturalearthdata.com/downloads/50m-cultural-vectors/50m-admin-0-countries-2/).

Various lines and area fills can be shown or hidden, and their color and line-widths specified. In the [default `plotly` template](/python/templates/), a map frame and physical features such as a coastal outline and filled land areas are shown, at a small-scale 1:110m resolution:

```python
import plotly.graph_objects as go
Expand Down Expand Up @@ -102,9 +110,9 @@ fig.show()

In addition to physical base map features, a "cultural" base map is included which is composed of country borders and selected sub-country borders such as states.

**Note and disclaimer:** cultural features are by definition subject to change, debate and dispute. Plotly includes data from Natural Earth "as-is" and defers to the [Natural Earth policy regarding disputed borders](https://www.naturalearthdata.com/downloads/50m-cultural-vectors/50m-admin-0-countries-2/) which read:
In **Plotly.py 6.3 and later**, this base map is created from [UN data](https://geoportal.un.org/arcgis/sharing/rest/content/items/d7caaff3ef4b4f7c82689b7c4694ad92/data).
Copy link
Contributor

@emilykl emilykl Aug 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the sub-country borders are still drawn from Natural Earth, correct?

LiamConnors reacted with thumbs up emoji

> Natural Earth Vector draws boundaries of countries according to defacto status. We show who actually controls the situation on the ground.
In **earlier versions of Plotly.py**, this base map is based on Natural Earth data. Plotly includes data from Natural Earth "as-is". This dataset draws boundaries of countries according to defacto status. See the [Natural Earth page for more details](https://www.naturalearthdata.com/downloads/50m-cultural-vectors/50m-admin-0-countries-2/).

**To create a map with your own cultural features** please refer to our [choropleth documentation](/python/choropleth-maps/).

Expand Down

AltStyle によって変換されたページ (->オリジナル) /