在繪圖中包含圖例但失敗
我正在嘗試將圖例包含在繪圖的框架中,如下這是我的嘗試:ListPlot[{2,5,2,8,6,8,3},{1,2,5,2,3,4,3},PlotMarkers-quot;,15},Joined-gt;{橙色
解答動態(tài)
上部有圖例空間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}],F(xiàn)rame-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;(加框[#,F(xiàn)rameMargins-amp;)],{0.1,0.5}],F(xiàn)rame->;True]
這些圖形命令通常有點(diǎn)模糊,必須嘗試。以下是您要找的大致情況嗎?:
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
免責(zé)聲明:
本頁內(nèi)容僅代表作者本人意見,若因此產(chǎn)生任何糾紛由作者本人負(fù)責(zé),概與琴島網(wǎng)公司無關(guān)。本頁內(nèi)容僅供參考,請您根據(jù)自身實(shí)際情況謹(jǐn)慎操作。尤其涉及您或第三方利益等事項(xiàng),請咨詢專業(yè)人士處理。