Plot可以在线形上加形状么
mathematica吧
全部回复
仅看楼主
level 9
比如像matlab一样,用△、Ο、*这种加到线上面。研究了半天帮助,现在只能勉强设置虚实线、颜色、粗细,再细就不行了[喝酒]线条超过四个,辨认起来就费劲了,而且考虑到论文可能是黑白的,还是得加形状
代码如下
Plot[{x + 1, -x + 1, x^2, x^3}, {x, -2, 4},
PlotTheme -> "Scientific",
PlotLegends -> {Style["x+1", 20], Style["-x+1", 20],
Style["x^2", 20], Style["x^3", 20]},
ImageSize -> Large,
PlotStyle -> {Orange, Black, Dashed, Blue}
]
2023年02月18日 03点02分 1
吧务
level 10
ListLinePlot PlotMarkers
2023年02月19日 16点02分 4
level 1
Python plt库试试
2023年02月21日 10点02分 5
1