尚未解答 電腦與網際網路 / 其他:電腦
Mathematica- 畫圖的格式及legend問題
匿
匿名
678 次瀏覽
0 個回答
各位版友好,想要請教關於畫圖的問題,我是這樣寫的
Clear["Global`*"]
f[ta_] := ta
ta = {{f[#]} & /@ Range[1, 2, 0.5]}
Plot[(ta + x)/2, {x, 0, 10}, PlotStyle -> {Dashed, Dotted, Full},
PlotLegends -> LineLegend [Automatic,{"ta=1", "ta=1.5", "ta=2"}]]
這個是我之前用舊版本畫的圖,同一張圖內會出現三條形狀不同的線(虛線、點、實線);
但我現在用新版的mathematica試了一下,同一張圖內的三條線都變成 Dashed 的@@
Lengend 也跑不出來,請問是 plot 功能有變化嗎?
--