开发者

Aligning Legend at the top right on ZedGraph

开发者 https://www.devze.com 2023-04-12 16:09 出处:网络
Aligning Legend at the top right on ZedGraph. myPane.Legend.Position = ZedGraph.LegendPos.TopCenter; // This way working.

Aligning Legend at the top right on ZedGraph.

 myPane.Legend.Position = ZedGraph.LegendPos.TopCenter; // This way working.

I tried this way and has not worked.

 //myPane.Legend.Location.AlignH = AlignH.Right;
//myPane.Legend.Location.AlignV = AlignV.Top;
//Location(0.95, 0.15,);// CoordType.PaneFraction, AlignH.Right, AlignV.Top);
//AlignV.Top; //(0.95, 0.15, CoordType.PaneF开发者_如何学Pythonraction, AlignH.Right, AlignV.Top);

Any suggestions. Thanks ocaccy


There are a couple of ways to align the legend to the top right, one way is:

myPane.Legend.Position = ZedGraph.LegendPos.Right;

or if you want the legend inside the graph area:

myPane.Legend.Position = ZedGraph.LegendPos.InsideTopRight;
0

精彩评论

暂无评论...
验证码 换一张
取 消