Click here to Skip to main content
15,911,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everyone

i need some help in plotting a graph in my application first i tell you what am i doing...

here
C#
myPane.YAxis.Scale.Min = 0;
myPane.YAxis.Scale.Max = 100;


 if (myCurve_1.Points.Count > 250)
 {
     myPane_1.XAxis.Scale.Min = myPane_1.XAxis.Scale.Min + 1;
 }
 if (y > myPane_1.YAxis.Scale.Max)
 {
     myPane_1.YAxis.Scale.Max = y;
 }

 if (y < myPane_1.YAxis.Scale.Min)
 {
     myPane_1.YAxis.Scale.Min = y;
 }
 x_1 = x_1 + 1;
 zgc.AxisChange();

according to my code it will change y axis scale max value if y is greater then max value so it increases the scale but when that high value peak passed it did not change the max value... actually i have no logic to plot it like for example i have utorrent in which graph scale is changing according to the max value but it remains same when high value curve is in the graph when it passed away it changes the scale according to next high value.

kindly help me creating a logic also tell me how would i know through coding that high curve is passed.

Thanx
Posted
Updated 20-Nov-12 2:03am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900