看板 Mathematica 關於我們 聯絡資訊
※ 引述《enunion (珍惜)》之銘言: : 請問有人知道再用ListLinePlot時 : 怎麼弄出一個方塊上面標示什麼顏色代表什麼意思 : 我試過PlotLegend : 但是沒用 : 查ListLinePlot的選項也沒有PlotLegend : 請問還有什麼方法嗎? : 感謝~ Try this: Needs["PlotLegends`"] ListLinePlot[Table[Accumulate[RandomReal[{-1, 1}, 250]], {3}], Filling -> Axis, PlotLegend -> {"a", "b", "c"}] == "PlotLegends" is a package, you need call it in. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.134.252.177
enunion:我有叫過這個package 還是不行 不知道是不是版本問題? 12/14 17:50
harry901:我7.0可以耶 你要不要複製貼上看看試試 12/14 17:52
harry901:PS. 6.0之後的版本應該都OK的 12/14 17:53
enunion:會出現這個 Unknown option PlotLegend in ListLinePlot 12/14 18:08
enunion:而且PlotLegend 會變成紅字 12/14 18:09
harry901:在檢查看看吧 你是不是有什麼少打了 你把上面貼上測試 12/14 18:32
enunion:我貼了 還是一樣 = = 好磨人呀~ 謝謝h大不計其煩 12/14 19:01
harry901:你的版本呢? 12/14 19:06
試著使用<<PlotLegends` 叫進去看看吧 ※ 編輯: harry901 來自: 220.134.252.177 (12/14 19:10)
enunion:我的版本是6.0 試了<<PlotLegends` 也不行 太怪了 12/14 21:27
harry901:http://tinyurl.com/6teh6og 有人也6.0有問題看來版本bug 12/14 21:47