Example 112: Scientific Graph showing manual min and max y

PesgoScientific Graph Objectbeginner

Manual min and max y

Preview

ProEssentials Pesgo Scientific Graph Object - Scientific Graph showing manual min and max y
Click to enlarge

Source Code

Form3.cs
1//! Very simple example showing how to control min and max of an axis. //
2
3// This example builds upon the basic CreateSimpleSGraph '100' example chart //
4CreateSimpleSGraph(Pesgo1);
5
6// Manually Control Y Axis//
7Pesgo1.PeGrid.Configure.ManualScaleControlY = ManualScaleControl.MinMax;
8Pesgo1.PeGrid.Configure.ManualMinY = 0;
9Pesgo1.PeGrid.Configure.ManualMaxY = 1000;
10
11// Set Various Other Properties //
12Pesgo1.PeColor.BitmapGradientMode = true;
13Pesgo1.PeColor.QuickStyle = QuickStyle.DarkNoBorder;
14Pesgo1.PeGrid.LineControl = GridLineControl.Both;
15Pesgo1.PeGrid.Option.YAxisLongTicks = true;
16
17// Generally call ReinitializeResetImage at end **'
18Pesgo1.PeFunction.ReinitializeResetImage();
19Pesgo1.Invalidate();
20// Optionally call Pego1.Refresh() if you are not seeing changes immediately
Tip: Uses property syntax like Pego1.PeData.Y[s, p]Click underlined properties to view documentation