求助,关于pointsize无法改变点的大小的问题
mathematica吧
全部回复
仅看楼主
level 2
我有两个数据集,想要用线段把点集连起来,但是mathematica画出的点太小,于是就试了一下Plotstyle-Pointsize这个属性,结果如图,
不论怎么改变Pointsize后的数字大小,都无法改变点的大小。
然而,将Plotmarkers属性删除,点的大小却可以改变了,如图所示
但是,此时的点的形状又不符合我的需求了,都变成了圆点。
请问各位大神,怎样在不改变点的形状(即图1的圆形,方形)的同时,改变点的大小,以使得点的可视性更强?麻烦各位!
2021年03月28日 02点03分 1
level 2
d = {{0.24, 0.3}, {0.28, 0.323}, {0.32, 0.34}, {0.36, 0.36}, {0.4,
0.389}, {0.44, 0.416}, {0.48, 0.44}}
e = {{0.24, 0.22}, {0.28, 0.228}, {0.32, 0.24}, {0.36, 0.25}, {0.4,
0.265}, {0.44, 0.279}, {0.48, 0.29}}
f = {d, e}
Show[ListPlot[f, PlotTheme -> "Scientific", PlotMarkers -> Automatic,
PlotStyle -> PointSize[0.3], PlotLegends -> {"nr1", "nr2"}],
ListLinePlot[f]]
2021年03月28日 02点03分 2
level 2
刚才忘记贴代码了,看到置顶帖又及时加上了,抱歉没有在主贴加上
2021年03月28日 02点03分 3
吧务
level 10
marker是可以用图元指令的(geaphics direcitve),你查一下吧
2021年03月28日 13点03分 4
好的,谢谢你的解答,我去查看一下[哈哈]
2021年03月29日 07点03分
level 7
ListLinePlot是可以直接标点的,不用ListPlot画两遍
ListLinePlot[f,PlotTheme->"Scientific",PlotMarkers->{{"\[FilledSquare]",20},{"\[FilledCircle]",15}},PlotLegends->{"nr1","nr2"}]
2021年03月29日 02点03分 5
谢谢你的回复!我去尝试一下[吐舌][吐舌][乖]
2021年03月29日 11点03分
已经实现了!麻烦大佬[喝酒]
2021年03月29日 11点03分
1