Norma Posy
asked on
X/Y scaling with MSChart type 2dXY
VB6: My application produces an X/Y plot of data. I am using MSChart type 2dXY. The "autoscale" is enabled.
The X and Y axes evidently are scaled identically. This means that, if the span of data for X, and that for Y, are not equal, the plot is not a square.
The span of data to be plotted varies.
My X data ranges from 0 to perhaps 1000. My Y data typically goes from 0 to 100 or 200.
This produces a really "squished" picture.
I would like to specify the actual screen dimensions of the plot, no matter how the scale numbers are autoscaled. Is this possible?
This is a simple plot, and it occurred to me that I could take the trouble to write the code to do my own plot. But it would be easier to use MSChart, if I could force it to the screen dimensions I want.
The X and Y axes evidently are scaled identically. This means that, if the span of data for X, and that for Y, are not equal, the plot is not a square.
The span of data to be plotted varies.
My X data ranges from 0 to perhaps 1000. My Y data typically goes from 0 to 100 or 200.
This produces a really "squished" picture.
I would like to specify the actual screen dimensions of the plot, no matter how the scale numbers are autoscaled. Is this possible?
This is a simple plot, and it occurred to me that I could take the trouble to write the code to do my own plot. But it would be easier to use MSChart, if I could force it to the screen dimensions I want.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
For general use, autoscaling is a bit tricky. For specific data, the scaling can be "hard wred".
You are right about how 2dXY does it. The Y axis fills the height, and the "inches per unit" for both axes are identical, which means the X axis length is a function of the data ratio. Should be independant and under code control.
Thank you.