Skip to content

Commit 4e4fa6e

Browse files
committed
Update colorscales.md
1 parent de7e5c0 commit 4e4fa6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/python/colorscales.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,11 @@ Using `labelalias` you can replace some labels on the `colorbar` with alternativ
307307
```python
308308
import plotly.graph_objects as go
309309

310-
import urllib
310+
import urllib.request as request
311311
import json
312312

313313
# Load heatmap data
314-
response = urllib.request.urlopen(
314+
response = request.urlopen(
315315
"https://raw.githubusercontent.com/plotly/datasets/master/custom_heatmap_colorscale.json")
316316
dataset = json.load(response)
317317

0 commit comments

Comments
 (0)