如何在holoviews多图线中绘制曲线的Milloin?

时间:2018-10-22 17:06:37

标签: python matplotlib dask holoviews datashader

是否有任何简单的方法告诉datashader我的行应基于某个值列来着色,即所谓的多色线一起着色?

我的数据已经用NaN分开进行绘图

  

sd是来自熊猫的DASK:sd.tail()

x   y   vabs    vabs1
5137339 14.289062   51.994141   389.443665  172.533920
5137340 -55.431641  -3.410156   417.245514  144.485260
5137341 -113.472656 -57.730469  345.505646  173.973068
5137342 -145.548828 -94.755859  219.604645  201.809570
5137343 NaN NaN NaN NaN

dynspread(datashade(hv.Curve(sd),aggregator=ds.min('vabs'),normalization='log',cmap=plt.cm.gist_rainbow).options(width=1000,height=1000))

产生以下内容: enter image description here

但是我需要得到类似的效果:

enter image description here

此图像是使用matplotlib中所述的方法生成的,它非常慢且不具有交互性。

0 个答案:

没有答案