在Matlab中,点具有可以设置为"None" (或任何其他颜色)的MarkerEdgeColor。在Julia中,使用Gadfly,离散颜色空间中的点(Geom.point)具有白色边缘,而连续颜色空间中的点具有深色高亮边缘。我想抑制这一点,所以没有“边缘”。
发布于 2019-10-08 17:36:37
在谷歌上搜索发现了这个issue on GitHub。但是解决方案表明Theme(discrete_highlight_color=c->nothing)对我不起作用。
查看Geom.Point的代码,我发现第80行引用了一个theme.highlight_width。将其设置为0对我有效。
using Gadfly
using DataFrames
df = DataFrame(x = randn(100), y=randn(100), c=rand(100))
plot(df, x=:x,y=:y,color=:c, Geom.point)
t = Theme(highlight_width=0)
plot(df, x=:x,y=:y,color=:c, Geom.point,t)https://stackoverflow.com/questions/58283774
复制相似问题