
Graph control - Constant x-axis
Hello!
I have a problem like this: I want to draw 1-5 curves to a graph control,
each curve should be different colour. The length of x-axis should be
constant (=10 units) , even if the curves will have less points!
Is there any easy way to keep the length of x-axis constant?
I have tried to solve this problem by drawing an extra white curve which
length is 10 units but then all other curves are also white (unvisible).
Here is few lines of my program:
For k=1 To 9
graph4.ThisPoint=k
graph4.ColorData=15
graph4.LabelText=Format(2*k-1)
graph4.GraphData=0
Graph4.XPosData=k-1
Next k
For j = 1 To 5
graph4.thisSet=j
For k= 1 to 7 'In this example the length of the curve will be 7 units
graph4.ThisPoint=k
graph4.ColorData=j
graph4.GraphData=table(j,k)
graph4.XPosData=k-1
Next k
Next j
graph4.DrawMode=2
In this example all the curves were not white but colour 5 (I don't remember
now what this colour looks like).
I have used Windows 3.1, VB3 Professional and Graphics Server Version 2.
I want to thank everybody who can help me in this problem.