Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Set Interval and numeric format for log Y axis

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Sreejith Posted - 17 Feb 2006 : 07:35:14
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
2   L A T E S T    R E P L I E S    (Newest First)
Sreejith Posted - 18 Feb 2006 : 10:20:05
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
quinncurtis Posted - 17 Feb 2006 : 08:33:30
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.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07