-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Merged
Changes from 15 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4911830
Add zero line layer example
LiamConnors 3465529
add pattern path example
LiamConnors ec640bd
add max height example
LiamConnors 72fb5cd
Merge branch 'main' into docs-update-next-release
LiamConnors d9ec816
Add modebar button disable example
LiamConnors f19bbf8
Add Minor Log Labels example
LiamConnors 2ecd080
Add unifiedhovertitle example
LiamConnors 60a377c
Make small formatting changes
LiamConnors 3ecefef
add map updates
LiamConnors 75af440
fix wording
LiamConnors 3d9ea84
Merge branch 'main' into docs-update-next-release
LiamConnors ce6ae1b
Update doc/python/choropleth-maps.md
LiamConnors 377db50
Update doc/python/map-configuration.md
LiamConnors cd57c41
Update doc/python/map-configuration.md
LiamConnors d4d9a3c
Update doc/python/map-configuration.md
LiamConnors 16e454a
Make small updates
LiamConnors 7ae4694
Merge branch 'docs-update-next-release' of https://github.com/plotly/…
LiamConnors a03c3de
Update legend.md
LiamConnors c72d9a1
Update doc/python/map-configuration.md
LiamConnors 052efc9
Update doc/python/choropleth-maps.md
LiamConnors c7a38b6
Merge remote-tracking branch 'origin/main' into docs-update-next-release
camdecoster File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
LiamConnors marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
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 de facto 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 | ||
|
@@ -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). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the sub-country borders are still drawn from Natural Earth, correct? |
||
|
||
> 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 de facto 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/). | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.