大佬救命!如何画出这种三角形,圆形的曲线图例!!
mathematica吧
全部回复
仅看楼主
level 2
热勇www♬ 楼主
2022年04月12日 14点04分 1
吧务
level 10
PlotMarkers
2022年04月12日 14点04分 2
这个好像是点的图例,线的怎么在函数里表示呢,我知道线是linelegend,但不会用[泪]
2022年04月12日 14点04分
@热勇www♬ LineLegend和LegendMarkers
2022年04月13日 05点04分
吧务
level 12
shadowbox[legend_] :=
Module[{w, h, dx},
dx = 0.02;
{w, h} = ImageDimensions@Rasterize[legend];
Graphics[{{Gray,
Rectangle[{dx, -dx}, {1 + dx, 1/w*h - dx}]}, {White,
EdgeForm[Gray], Rectangle[{0, 0}, {1, 1/w*h}]},
Inset[legend, {0.5, 1/w*h/2}, Center]}]
]
ListLinePlot[Table[
Table[{x, f[x] + 0.5}, {x, 0, 1, 0.05}],
{f, {
# + Sin[2 \[Pi] #
]/3 &,
Sqrt[
#] + Sin[3 \[Pi] #
]/5 &, # &, # + Sin[\[Pi] #]/4 &}}
], InterpolationOrder -> 3, PlotMarkers -> "OpenMarkers",
PlotLegends ->
Placed[LineLegend[Automatic,
Table[StringTemplate["\[Alpha]=``"][\[Alpha]], {\[Alpha], {0.5,
0.7, 0.9, 1.1}}], LegendFunction -> shadowbox,
LegendLayout -> (Grid[Map[Row, Partition[#, 2], {2}]] &),
LegendMarkerSize -> {{40, 15}}], {0.7, 0.2}],
PlotTheme -> "Detailed"]
2022年04月13日 13点04分 3
强👍
2022年04月14日 16点04分
[啊]好久不见啊东瓜哥[太开心]
2022年04月27日 11点04分
1