Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Set Interval and numeric format for log Y axis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sreejith

11 Posts

Posted - 17 Feb 2006 :  07:35:14  Show Profile  Reply with Quote
Hello,

We are using polygraph. We want Yaxis to come in exponent value.
lets say 0.1 should display as 1.00E-002

And i want to set the interval. We have set Minimum and Maximum value of Y axis but it only displays min as 0.1 and max as 100000 on the graph. But we want that it should display like this

100000
10000
1000
100
10
1
0.1 (min) but we need the same thing in exponent format.

Following is the code
=====================


Private yaxis11, yaxis12 As LogAxis

Dim pTransform1 As New TimeCoordinates(origStartTime, voiceStress.DefaultMinimumDisplayValue, origEndTime, voiceStress.DefaultMaximumDisplayValue)

pTransform1.SetGraphBorderDiagonal(0.1, 0.69, 0.9, 0.83)
pTransform1.SetScaleStartY(0.1)
pTransform1.SetScaleStopY(100000)

yaxis11 = New LogAxis(pTransform1, ChartObj.Y_AXIS)
yaxis12 = New LogAxis(pTransform1, ChartObj.Y_AXIS)

Your help will be appreciated!!!

Dhiren

Thanks & Regards
Srejith Nair

quinncurtis

1586 Posts

Posted - 17 Feb 2006 :  08:33:30  Show Profile  Reply with Quote
Chapter 8 (Axis Labels) of the Charting Tools manual (QCChart2DManual) discussing axis labels explains how to set the numeric format of axis labels. Explain your problem after reading that chapter.

We cannot reproduce your other problem.
We have many semi-log plot examples in the QCChart2D examples (LogPlots) and none skip directly from 1 to 100000.

We made yaxis11 in the Polygraph example program a LogAxis and it worked exactly as expected, with tickmarks and labels at 0.1,1,10, 100, 1000, 10000.


// Modified in the Polygraph.InitializeBeatingHeartScrollGraph method.

xaxis1.AxisIntercept = 0.1;
pTransform11.SetTimeScaleTransforms(ChartObj.TIME_SCALE, ChartObj.LOG_SCALE);
pTransform11.SetScaleStartY(0.1);
pTransform11.SetScaleStopY(10000);	
yaxis11 = new LogAxis(pTransform11, ChartObj.Y_AXIS);
.
.
.
NumericAxisLabels yAxisLab = new NumericAxisLabels(yaxis11);
yAxisLab.TextFont = font10;
yAxisLab.AxisLabelsFormat = ChartObj.SCIENTIFICFORMAT;
chartVu.AddChartObject(yAxisLab);


If you still cannot solve your problem you need to create the simplest possible example program that demonstrates the problem and send the complete project as a zip file to support@quinn-curtis.com along with an explaination.

If you solve the problem after reading this post please make sure you post what the solution is on this thread.
Go to Top of Page

Sreejith

11 Posts

Posted - 18 Feb 2006 :  10:20:05  Show Profile  Reply with Quote
Thanks it helped us. the code your provided serves our purpose.

following code solved our problem

NumericAxisLabels yAxisLab = new NumericAxisLabels(yaxis11);
yAxisLab.TextFont = font10;
yAxisLab.AxisLabelsFormat = ChartObj.SCIENTIFICFORMAT;
chartVu.AddChartObject(yAxisLab);

Thanks & Regards
Srejith Nair
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07