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 Windows
 Charting and Real-Time Graphics Tools for Windows
 X Axis Labeling Problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gsexton

3 Posts

Posted - 27 Feb 2006 :  14:29:23  Show Profile  Reply with Quote
I'm having a problem labeling my X Axis. The problem is that the Tickmarks are showing up on boundaries of 101, 201, etc.

This is making my customers crazy.

On a related note, if I set the label to be the time, I have a similar problem.

Can anyone give me a hint how to set the X Axis labels so that the starting point for counting is off by 1?

quinncurtis

1164 Posts

Posted - 27 Feb 2006 :  14:50:07  Show Profile  Reply with Quote
Sounds like you should be using the WGSetAxisIntercepts function, after you create the axes. The rLabelsInt parameter sets the starting point, or origin, of the axis label tick marks. In your case, something like:

double rAxisInt = 0.0;
double rLabelsInt = 0.0;

WGSetAxisIntercepts(pGrDesc, hdc, hAxisX, rAxisInt , rLabelsInt );

would work.
Go to Top of Page

gsexton

3 Posts

Posted - 27 Feb 2006 :  15:48:32  Show Profile  Reply with Quote
Can you tell me what preconditions should exist. I tried that and it didn't work. Specifically, I am wondering about

WGScalePlotArea()and WGSetXYIntercepts()
Go to Top of Page

quinncurtis

1164 Posts

Posted - 27 Feb 2006 :  17:03:38  Show Profile  Reply with Quote
It should be called AFTER any calls to WGScalePlotArea, WGSetXYIntercepts, or any of the axis or axis labeling routines. Just call it as the last line in the graph building routine.
Go to Top of Page

gsexton

3 Posts

Posted - 28 Feb 2006 :  11:04:49  Show Profile  Reply with Quote
OK, I solved this. It turns out my real problem was that reading 1 was being plotted as point 0. I made reading 1 point 1 and things are better.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07