Skip to content

Commit

Permalink
Update Velocity_with_colormap.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
HaudinFlorence committed Sep 23, 2022
1 parent 6dec92f commit 5d0afd1
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions examples/Velocity_with_colormap.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -39,7 +39,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -55,7 +55,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -73,7 +73,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -82,7 +82,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -101,17 +101,33 @@
" max_velocity=20,\n",
" colormap = linear.viridis,\n",
" display_options=display_options,\n",
" caption='wind velocity (m/s)',\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d6cfade4ae75498195a0648d611c5eab",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Map(center=[44.33956524809713, -130.60546875000003], controls=(ZoomControl(options=['position', 'zoom_in_text'…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"colormap_control = ipyleaflet.ColormapControl(\n",
" caption='Unemployment rate',\n",
" caption=wind.caption,\n",
" colormap=wind.colormap,\n",
" value_min=wind.min_velocity,\n",
" value_max=wind.max_velocity,\n",
Expand Down

0 comments on commit 5d0afd1

Please sign in to comment.