Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Arman Khalatyan
okd-panel
Commits
acadb526
Commit
acadb526
authored
Aug 26, 2020
by
Arman Khalatyan
Browse files
Update app.py
parent
37109b9a
Pipeline
#1470
passed with stages
in 6 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
webapp/app.py
View file @
acadb526
...
...
@@ -170,6 +170,7 @@ if st.checkbox('Warning: the interactive can be very slow'):
import
holoviews
as
hv
from
holoviews
import
opts
from
holoviews
import
dim
from
holoviews.operation.datashader
import
datashade
,
shade
,
dynspread
,
rasterize
hv
.
extension
(
'bokeh'
)
...
...
@@ -180,3 +181,8 @@ if st.checkbox( "interactive holoview plot"):
hex_tiles
.
opts
(
opts
.
HexTiles
(
width
=
500
,
height
=
400
,
tools
=
[
'hover'
],
colorbar
=
True
))
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'
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment