Hello! I am working with Bokeh and would like to draw a set if Pie charts upon Image in DynamicMap
pipe = Pipe(data=)
Image = hv.DynamicMap(hv.Image, streams=[pipe])
Could you provide any tips on how to work around it, please?
Hello! I am working with Bokeh and would like to draw a set if Pie charts upon Image in DynamicMap
pipe = Pipe(data=)
Image = hv.DynamicMap(hv.Image, streams=[pipe])
Could you provide any tips on how to work around it, please?
Thanks for the answer, it helped a lot! So in case someone is looking for the same thing, my code is next:
from bokeh.plotting import figure, show
import holoviews as hv
import numpy as np
hv.extension('bokeh')
pipe = Pipe(data=np.random.rand(10,10))
def hook(plot, element):
plot.state.wedge(x=[-0.3, 0, -0.2], y=[-0.3, 0, -0.2], radius=[15,10,5],
start_angle=0.9, radius_units="screen", color="red")
a = hv.DynamicMap(hv.Image, streams=[pipe]).opts(hooks=[hook], xlim=(-.5, .5), ylim=(-.5, .5))
a
Hi @JhonnyKokos
While running your code, I encountered an error, since Pipe
is not defined. Could you explain what Pipe
is? Could you also share a working code so that I can visualize what you did?
Thanks,
Sam
from holoviews.streams import Pipe, Buffer
https://holoviews.org/user_guide/Streaming_Data.html
Thanks. I found it.