本文整理汇总了C#中ZedGraph.MasterPane.AutoPaneLayout方法的典型用法代码示例。如果您正苦于以下问题:C# MasterPane.AutoPaneLayout方法的具体用法?C# MasterPane.AutoPaneLayout怎么用?C# MasterPane.AutoPaneLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ZedGraph.MasterPane
的用法示例。
在下文中一共展示了MasterPane.AutoPaneLayout方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Form1_Load
//.........这里部分代码省略.........
{
// Create a new graph with topLeft at (40,40) and size 600x400
GraphPane myPaneT = new GraphPane( new Rectangle( 40, 40, 600, 400 ),
"Case #" + (j+1).ToString(),
"Time, Days",
"Rate, m/s" );
myPaneT.PaneFill = new Fill( Color.White, Color.LightYellow, 45.0F );
myPaneT.BaseDimension = 6.0F;
// Make up some data arrays based on the Sine function
double x, y;
PointPairList list = new PointPairList();
for ( int i=0; i<36; i++ )
{
x = (double) i + 5;
y = 3.0 * ( 1.5 + Math.Sin( (double) i * 0.2 + (double) j ) );
list.Add( x, y );
}
LineItem myCurve = myPaneT.AddCurve( "Type " + j.ToString(),
list, rotator.NextColor, rotator.NextSymbol );
myCurve.Symbol.Fill = new Fill( Color.White );
master.Add( myPaneT );
}
myPane = master[0];
Graphics g = this.CreateGraphics();
//master.AutoPaneLayout( g, PaneLayout.ExplicitRow32 );
//master.AutoPaneLayout( g, 2, 4 );
master.AutoPaneLayout( g, false, new int[] { 1, 3, 2 }, new float[] { 2, 1, 3 } );
master.AxisChange( g );
g.Dispose();
#endif
#if false // MasterPane - Single Pane
master = new MasterPane( "ZedGraph MasterPane Single Pane Example", new Rectangle( 10, 10, 10, 10 ) );
master.Fill = new Fill( Color.White, Color.MediumSlateBlue, 45.0F );
// Create a new graph with topLeft at (40,40) and size 600x400
GraphPane myPaneT = new GraphPane( new Rectangle( 40, 40, 600, 400 ),
"Case 1",
"Time, Days",
"Rate, m/s" );
myPaneT.Fill = new Fill( Color.White, Color.LightYellow, 45.0F );
myPaneT.BaseDimension = 6.0F;
// Make up some data arrays based on the Sine function
double x, y;
PointPairList list = new PointPairList();
for ( int i=0; i<36; i++ )
{
x = (double) i + 5;
y = 3.0 * ( 1.5 + Math.Sin( (double) i * 0.2 ) );
list.Add( x, y );
}
LineItem myCurve = myPaneT.AddCurve( "Type 1",
list, Color.Blue, SymbolType.Circle );
myCurve.Symbol.Fill = new Fill( Color.White );