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 功能有變化嗎?

--

我要回答

0 個回答

還沒有人回答,你知道答案嗎?

我要回答

登入會員後即可回答問題。

免費註冊