by James Bott » Mon Jan 28, 2013 7:20 pm
Silvio,
Currently TGraph figures out the max and min value for each axis based on the data. This can lead to some very odd labeling of increments. For instance the graph I am currently using shows the Y-Axis from 0 to 250 (which is actually OK), but there are only 4 increments for the labels so you get labels of 0.00, 62.50, 125.00, 187.50, 250.00. This isn't actually that bad, but it would be better divided into 5 increments so the labels would read 0, 50, 100, 150, 200, 250.
So, it would seem that the easiest way to handle this would be to allow the programmer to set the min and max of the axis and the number of increments for the labeling.
I don't need this for the x-axis right now, but I am sure it would also be useful.
Of course, it would still be useful to have it operate as it does now since you often don't know the range of the data you are processing.
Since TGraph is a very complex program capable of doing some complex graphing it would probably be best if we could get the author to add these features.
For me the changes are not a pressing need, since I have been using this chart for a couple of years now. Others may need this capability though.
I wish to thank Alfredo Arteaga, the author of TGraph for writing this awesome program. One of the very first programs I wrote almost 30 years ago, was a graphing program and it was not easy.
Regards,
James