Yes. Me too. I have an old code I once wrote which I can dig up. It acceped parameters for scaling, axis labelling, etc, and just drew the plot.
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.
Main Topics
Browse All Topics





by: BrianVSoftPosted on 2009-07-04 at 01:27:20ID: 24776325
Hi again,
I have used MSChart many times, but not for a few years.. I don't remember ever having a "squashed" aspect.. It always stretched the Y axis to fill the MyChart.Height dimension..
Check if you are able to achieve a good aspect by simply placing "MyChart.Height = xx" at the end of your fill routine?
I now use my own function to draw simple 2D - multi-line charts in Picture boxes.. It is less than 50 lines of code and can be used for a variety of situations.. I can attach a code example if you continue to have trouble..