在绘图中包含图例但失败

2021-02-28 18:12

我正在尝试将图例包含在绘图的框架中,如下这是我的尝试:ListPlot[{2,5,2,8,6,8,3},{1,2,5,2,3,4,3},PlotMarkers-quot;,15},Joined-gt;{橙色

解答动态

  • 上部有图例空间left
    ListPlot[{2,5,2,8,6,8,3},{1,2,5,2,3,4,3}},PlotMarkers-quot;?gt;True,PlotStyle-gt;Placed[LineLegend[{line1quot;line2gt;quot;],{.15,.8}],Frame-gt;{0,9},{0,9},PlotMarkers-gt;True,PlotStyle-gt;Placed[LineLegend[{line1quot;line2gt;Framegt;True]

    • 您没有为Placed
      ListPlot[{2,5,2,8,6,8,3},{1,2,5,2,3,4,3}放置任何位置,PlotMarkers-quot;,15},Joined-gt;{Orange,Green},PlotLegends-quot;line1quot;line2gt;(加框[#,FrameMargins-amp;)],{0.1,0.5}],Frame->;True]

      • 这些图形命令通常有点模糊,必须尝试。以下是您要找的大致情况吗?:
        ListPlot[{2,5,2,8,6,8,3},{1,2,5,2,3,4,3}},PlotMarkers-quot;,15},Joined-gt;{Orange,Green},PlotLegends-quot;,quot;},LegendFunction-gt;True,PlotRange->;{0,10},全部}]

        • End

        免责声明:

        本页内容仅代表作者本人意见,若因此产生任何纠纷由作者本人负责,概与琴岛网公司无关。本页内容仅供参考,请您根据自身实际情况谨慎操作。尤其涉及您或第三方利益等事项,请咨询专业人士处理。