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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,19 @@
2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [Semantic Versioning](http://semver.org/).
4
4
5
+
## Unreleased
6
+
7
+
## [6.3.0] - 2025-08-12
8
+
9
+
### Updated
10
+
- Updated Plotly.js from version 3.0.1 to version 3.1.0. See the plotly.js [release notes](https://github.com/plotly/plotly.js/releases) for more information. [[#5318](https://github.com/plotly/plotly.py/pull/5318)]
11
+
12
+
### Added
13
+
- Exposed `plotly.io.get_chrome()` as a function which can be called from within a Python script. [[#5282](https://github.com/plotly/plotly.py/pull/5282)]
14
+
15
+
### Fixed
16
+
- Resolved issue causing extraneous engine deprecation warnings [[#5287](https://github.com/plotly/plotly.py/pull/5287)], with thanks to @jdbeel for the contribution!
Copy file name to clipboardExpand all lines: doc/python/choropleth-maps.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,15 +208,16 @@ fig.show()
208
208
Plotly comes with two built-in geometries which do not require an external GeoJSON file:
209
209
210
210
1. USA States
211
-
2. Countries as defined in the Natural Earth dataset.
211
+
2. Countries
212
212
213
-
**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:
213
+
In **Plotly.py 6.3 and later**, the built-in countries geometry is created from the following sources:
214
+
-[UN data](https://geoportal.un.org/arcgis/sharing/rest/content/items/d7caaff3ef4b4f7c82689b7c4694ad92/data) for country borders, coastlines, land, and ocean layers.
215
+
- Natural Earth data for lakes, rivers, and subunits layers.
214
216
215
-
> Natural Earth Vector draws boundaries of countries according to defacto status. We show who actually controls the situation on the ground.
217
+
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 de facto status. See the [Natural Earth page for more details](https://www.naturalearthdata.com/downloads/50m-cultural-vectors/50m-admin-0-countries-2/).
216
218
217
219
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).
Disabling the zoom in, zoom out, and autoscale buttons for specific axes is supported on cartesian axes using the `modebardisable` attribute. In the following example, the zoom in and zoom out buttons are disabled on the `xaxis`, meaning these buttons only zoom in and out on the `yaxis`. Disable the autoscale button using `modebardisable='autoscale'`. You can also disable the zoom and autoscale buttons using `modebardisable='zoominout+autoscale'`.
331
+
332
+
```python
333
+
import plotly.graph_objects as go
334
+
import plotly.data
335
+
336
+
df = plotly.data.stocks()
337
+
338
+
fig = go.Figure(
339
+
data=[
340
+
go.Scatter(
341
+
x=df['date'],
342
+
y=df['GOOG'],
343
+
mode='lines+markers',
344
+
name='Google Stock Price'
345
+
)
346
+
],
347
+
layout=go.Layout(
348
+
title='Google Stock Price Over Time with Mode Bar Disabled',
349
+
xaxis=dict(
350
+
title='Date',
351
+
# Try zooming in or out using the modebar buttons. These only apply to the yaxis in this exampe.
352
+
modebardisable='zoominout'
353
+
),
354
+
yaxis=dict(
355
+
title='Stock Price (USD)',
356
+
)
357
+
)
358
+
)
359
+
fig.show()
360
+
```
361
+
326
362
### Configuring Figures in Dash Apps
327
363
328
364
The same configuration dictionary that you pass to the `config` parameter of the `show()` method can also be passed to the [`config` property of a `dcc.Graph` component](https://dash.plotly.com/dash-core-components/graph).
0 commit comments