【发布时间】:2019-01-21 14:40:29
【问题描述】:
Vegas("A scatterplot").
withDataFrame(neuronnet_activation_df).
mark(Point).
encodeX("s", Quantitative).
encodeY("d", Quantitative).
encodeColor(field="feature_0_prediction",scale=Scale(rangeNominals=List("#c41f01", "#00c610"))).
show
是否可以用特定的 RGB 或 aRGB 值绘制每个点? 我已经计算了颜色,所以我不需要使用范围,而且我的数据的颜色范围也不是线性的。
【问题讨论】:
标签: scala apache-spark vega vega-lite vegas-viz