贊助廠商

娛樂城推薦

首頁

刊登資訊

  • 刊登者:匿名
  • 時間:2021-06-11 12:20:07

尚未解答Mathematica- 畫圖的格式及legend問題

Mathematica- 畫圖的格式及legend問題

各位版友好,想要請教關於畫圖的問題,我是這樣寫的

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個答案 Mathematica- 畫圖的格式及legend問題

其他問題

友站連結