04-28-2006 03:16 PM
waveformGraph1.YAxes[0].ScaleType = ScaleType.Logarithmic;
double[] arrD = new double[5]{0.0145,0.25,3,14,105};waveformGraph1.PlotY(arrD);
and then in button 2:
waveformGraph1.YAxes[0].ScaleType = ScaleType.Linear;
Is this a known problem? Who knows a solution or a (simple:) workaround?
Best regards
Andy
05-03-2006 11:32 AM
When you take the code here for the Buttons, then you see the correct scale of y axis
static void Main()
{
Application.Run(new Form1());
}
private void button2_Click(object sender, System.EventArgs e)
{
waveformGraph1.YAxes[0].ScaleType=ScaleType.Logarithmic;
double[] data = new double[5]{0.0145,0.25,3,14,105};
waveformGraph1.PlotY(data);
}
private void button1_Click(object sender, System.EventArgs e)
{
waveformGraph1.YAxes[0].ScaleType=ScaleType.Linear;
double[] data = new double[5]{0.0145,0.25,3,14,105};
waveformGraph1.PlotY(data);
waveformGraph1.Refresh();
}