Author |
Topic  |
|
gsexton
3 Posts |
Posted - 27 Feb 2006 : 14:29:23
|
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
|
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. |
 |
|
gsexton
3 Posts |
Posted - 27 Feb 2006 : 15:48:32
|
Can you tell me what preconditions should exist. I tried that and it didn't work. Specifically, I am wondering about
WGScalePlotArea()and WGSetXYIntercepts() |
 |
|
quinncurtis
1164 Posts |
Posted - 27 Feb 2006 : 17:03:38
|
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.
|
 |
|
gsexton
3 Posts |
Posted - 28 Feb 2006 : 11:04:49
|
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. |
 |
|
|
Topic  |
|
|
|