level 6
冉qx
楼主
ListLinePlot[{Table[{x, Sin[x]}, {x, 0.2, 0.4, 0.001}],
Table[{x, Cos[x]}, {x, 0.2, 0.4, 0.001}]},
PlotLegends -> Placed[LineLegend[{"\!\(\*SubscriptBox[
StyleBox[\"n\",\nFontSlant->\"Italic\"], \(1\)]\)",
"\!\(\*SubscriptBox[
StyleBox[\"n\",\nFontSlant->\"Italic\"], \(2\)]\)"},
LegendFunction -> (Framed[#, RoundingRadius -> 3] &),
LegendMargins -> -1], Scaled[{0.88, 0.75}]], Frame -> True,
GridLines -> Automatic]

如图所示,有什么办法让图中红线所指位置,两个图例之间的空白减小一些吗?
2021年08月18日 02点08分
1
Table[{x, Cos[x]}, {x, 0.2, 0.4, 0.001}]},
PlotLegends -> Placed[LineLegend[{"\!\(\*SubscriptBox[
StyleBox[\"n\",\nFontSlant->\"Italic\"], \(1\)]\)",
"\!\(\*SubscriptBox[
StyleBox[\"n\",\nFontSlant->\"Italic\"], \(2\)]\)"},
LegendFunction -> (Framed[#, RoundingRadius -> 3] &),
LegendMargins -> -1], Scaled[{0.88, 0.75}]], Frame -> True,
GridLines -> Automatic]

如图所示,有什么办法让图中红线所指位置,两个图例之间的空白减小一些吗?