ListLinePlot
我可以通过做类似的事情来获得颜色
ListLinePlot[Range[420, 680, 20], ColorFunction -> "VisibleSpectrum", ColorFunctionScaling -> False]
但是,如帮助文件所示(“ColorFunction
需要至少一个数据集Joined
”),如果我执行等效操作
ListPlot[Range[420, 680, 20], ColorFunction -> "VisibleSpectrum", ColorFunctionScaling -> False]
我所有的点都是蓝色的。有没有一种很好的方式来ColorFunction
工作?ListPlot
Joined -> False
也就是说,有没有更好的方法来获得类似的东西
ListPlot[
List /@ Transpose[{Range[(680 - 420)/20 + 1], Range[420, 680, 20]}],
PlotMarkers -> ({Graphics[{#, Disk[]}], 0.05} & /@ ColorData["VisibleSpectrum"] /@ Range[420, 680, 20])
]
?
(另外,有没有人解释为什么Mathematica 需要Joined -> True
使用ColorFunction
?)
编辑:我也在寻找一种ErrorListPlot
在ErrorBarPlots
包装中进行类似着色的方法。