Example 203: Polar Chart showing smith chart

PepsoPolar Chart Objectbeginner

Smith chart

Preview

ProEssentials Pepso Polar Chart Object - Polar Chart showing smith chart
Click to enlarge

Source Code

Form4.cs
1// This example builds upon the basic CreateSimplePolar '200' example chart //
2CreateSimplePolar(Pepso1);
3
4// Enable Smith Mode //
5Pepso1.PePlot.SmithChart = SmithChart.Smith;
6Pepso1.PeString.MainTitle = "Smith Chart";
7
8// Change the data to something more appropriate //
9Pepso1.PeData.Subsets = 2;
10Pepso1.PeData.Points = 40;
11
12// Set first subset's data //
13for( int p = 0; p <= 359; p++)
14{
15 Pepso1.PeData.X[0, p] = (float)(p * 0.1);
16 Pepso1.PeData.Y[0, p] = (float)(Math.Sin(p * 0.54) * 0.2);
17}
18
19// Set second subset's data //
20for( int p = 0; p <= 359; p++)
21{
22 Pepso1.PeData.X[1, p] = (float)(p * 0.5);
23 Pepso1.PeData.Y[1, p] = (float)(Math.Sin(p * 0.44) * 0.5);
24}
25
26// Set Various other features //
27Pepso1.PeColor.BitmapGradientMode = true;
28Pepso1.PeColor.QuickStyle = QuickStyle.DarkNoBorder;
29
30// Add Some Padding on Right and Bottom //
31Pepso1.PeConfigure.ImageAdjustLeft = 100;
32Pepso1.PeConfigure.ImageAdjustRight = 100;
33Pepso1.PeConfigure.ImageAdjustBottom = 100;
34
35Pepso1.PeFunction.ReinitializeResetImage();
36Pepso1.Invalidate();
Tip: Uses property syntax like Pego1.PeData.Y[s, p]Click underlined properties to view documentation