Commit acadb526 authored by Arman Khalatyan's avatar Arman Khalatyan
Browse files

Update app.py

parent 37109b9a
Pipeline #1470 passed with stages
in 6 minutes and 46 seconds
...@@ -170,6 +170,7 @@ if st.checkbox('Warning: the interactive can be very slow'): ...@@ -170,6 +170,7 @@ if st.checkbox('Warning: the interactive can be very slow'):
import holoviews as hv import holoviews as hv
from holoviews import opts from holoviews import opts
from holoviews import dim from holoviews import dim
from holoviews.operation.datashader import datashade, shade, dynspread, rasterize
hv.extension('bokeh') hv.extension('bokeh')
...@@ -180,3 +181,8 @@ if st.checkbox( "interactive holoview plot"): ...@@ -180,3 +181,8 @@ if st.checkbox( "interactive holoview plot"):
hex_tiles.opts(opts.HexTiles(width=500, height=400, tools=['hover'], colorbar=True)) hex_tiles.opts(opts.HexTiles(width=500, height=400, tools=['hover'], colorbar=True))
st.bokeh_chart(hv.render(hex_tiles, backend='bokeh')) st.bokeh_chart(hv.render(hex_tiles, backend='bokeh'))
if st.checkbox( "interactive scatter plot"):
#plot_figure_plotly(df,xname,yname)
points = hv.Points(df[[xname,yname]])
# hex_tiles.opts(opts.HexTiles(width=500, height=400, tools=['hover'], colorbar=True))
st.bokeh_chart(hv.render(points, backend='bokeh'))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment