Skip to content

Commit

Permalink
Merge pull request #49 from nasa/agu_dev
Browse files Browse the repository at this point in the history
fix interactive color cycling
  • Loading branch information
mjami00 committed Dec 14, 2023
2 parents cf7bf54 + ebc7588 commit dced16c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tutorials/Exploring_EMIT_L2A_Reflectance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@
" source=points,\n",
" drag=True,\n",
" num_objects=POINT_LIMIT,\n",
" styles={'fill_color': color_cycle.values[0:POINT_LIMIT], 'line_color': 'gray'}\n",
" styles={'fill_color': color_cycle.values[1:POINT_LIMIT+1], 'line_color': 'gray'}\n",
")\n",
"\n",
"posxy = hv.streams.PointerXY(source=map, x=xmid, y=ymid)\n",
Expand Down Expand Up @@ -741,7 +741,7 @@
"hover_dmap = hv.DynamicMap(hover_spectra, streams=[posxy])\n",
"\n",
"# Plot the Map and Dynamic Map side by side\n",
"hv.Layout(click_dmap*hover_dmap + map * points).cols(2).opts(\n",
"hv.Layout(hover_dmap*click_dmap + map * points).cols(2).opts(\n",
" hv.opts.Points(active_tools=['point_draw'], size=10, tools=['hover'], color='white', line_color='gray'),\n",
" hv.opts.Overlay(show_legend=False, show_title=False, fontscale=1.5, frame_height=480)\n",
")"
Expand Down

0 comments on commit dced16c

Please sign in to comment.