mathematica畫圖時圖例的粗細如何調節?

時間 2021-06-07 21:38:44

1樓:St Jason

之前非常感謝各位朋友對此問題的回覆Mathematica如何清晰的把圖匯入到Word? - Microsoft Word

在使用上述方法的同時,發現乙個問題,就是在增加ImageResolution的時候,圖例的標識會變得淺

那麼有什麼辦法能加粗這個圖示,並且增加外框?

我通過查詢幫助知道有linelegend這個辦法

Plot[, ,

AxesOrigin -> , GridLines -> Automatic, PlotRange -> All,

GridLinesStyle -> Directive[Dashed], Frame -> True,

FrameLabel -> ,

PlotLabel -> Style["various function", 15],

LabelStyle -> Directive[FontFamily -> "Helvetica", FontSize -> 14],

PlotStyle -> ,

PlotLegends ->

Placed[, ],

Background -> White]

使用LineLegend的時候,必須指定每條曲線的顏色,否則無法與曲線顏色匹配

shadowbox[legend_] :=

Graphics[, ]}, , Inset[legend, , Center]},

ImageSize -> 120]

Plot[, ,

AxesOrigin -> , GridLines -> Automatic, PlotRange -> All,

GridLinesStyle -> Directive[Dashed], Frame -> True,

FrameLabel -> ,

PlotLabel -> Style["various function", 15],

LabelStyle -> Directive[FontFamily -> "Helvetica", FontSize -> 14],

PlotStyle -> ,

PlotLegends ->

Placed[LineLegend[, , LegendFunction -> shadowbox], ],

Background -> White]

這裡LineLegend[

Linelegend必須指定顏色和式樣,否則無法顯示圖例

那麼有沒有更好的辦法,既能自動匹配曲線的顏色,又能加粗圖例中的標識?

你喜歡用 Mathematica 畫圖嗎?

鄭劍豪 由於發現mma的排版功能也不錯,我經常用mma寫作業,然後國內對這個軟體普及率很低,所以老師也看不出來我用啥完成的,常常作業可以拿A啥的 似乎引發了些許關注,那麼我就 show 一下怎樣用 ComplexPlot 畫二維 靜 電場和電勢吧。稍微有一些數學背景可參見 Section 7.2,F...

mathematica中畫圖函式的區分?

吉聆遠 具體的區別 withparadox2 已經說得很明晰了。但對於 3,當不好求出顯示解時,如 x 2 Sin y Cos x y,不好寫出以上兩種形式時便可以用ContourPlot ImplicitPlot淘汰掉 來繪製,例如 ContourPlot x 2 Sin y Cos x y,我來...

Mathematica畫圖,怎麼畫下面的這兩個圖,謝謝大家了

Graphics Opacity 1 Thick Circle 15,Line Arrowheads Arrow Dashed Line Line Line Text Style A 20 Bold Text Style O 20 Bold Text Style C 20 Bold Text Sty...