我为制作全息图的不同时间序列绘制了不同的时间序列图,现在我正在绘制不同的纬度范围全息图,然后出现异常:- 异常:不支持在 DynamicMap 中嵌套 DynamicMap。确保 DynamicMap 回调返回一个元素或 (Nd)Overlay。如果您已应用操作,请通过设置 dynamic=False 确保它不是动态的。
:DynamicMap [Lat and Lon :] :DynamicMap [Date and Time :] 我没有得到作为 dynamicmap 嵌套的情节,
我试图在最后的最终情节中进行光栅化。它没有用
latlon_selPLot={f'lat:{k[0]} lon:{k[1]}':finalplot(k) for k in
[[(12,15),(80,85)],[(13,18),(81,95)]]}
dd=df_div.opts(width=200, height=100)
hmap11 = hv.HoloMap(latlon_selPLot, kdims='Lat and Lon :' )
tiles*rasterize(hmap11)
# Below is the code i am using , where i have to make change ,
# so that i get holomap of lat_lon_selPlot when i select one
#lat_lon range then that particular area plot is shown .
allplot={k.strftime("%Y-%m-%d %H:%M:%S"):plotthis(k)for k in
perdelta(strt, strt + timedelta(days=1), timedelta(hours=18))}
allplot2={k.strftime("%Y-%m-%d %H:%M:%S"):plotsecond(k)for k in
perdelta(strt, strt + timedelta(days=1), timedelta(hours=18))}
....
tiles = gv.tile_sources.Wikipedia
hmap1 = hv.HoloMap(allplot, kdims='Date and Time :' )
hmap2 = hv.HoloMap(allplot2, kdims='Date and Time :')
def finalplot(rng):
finalplot=rasterize(hmap1.redim.range(Latitude=rng[0],
Longitude=rng[1])).options(**opts)*hmap2
return finalplot
latlon_selPLot={f'lat:{k[0]} lon:{k[1]}':finalplot(k) for k in
[[(12,15),(80,85)],[(13,18),(81,95)]]}
dd=df_div.opts(width=200, height=100)
hmap11 = hv.HoloMap(latlon_selPLot, kdims='Lat and Lon :' )
tiles*hmap11
我希望我的 lat_lon_selPlot 全息图也可以工作。