Original Post
Hi, this isn''t really a game programming question. However, it does have something to do with graphics.
Anywho, I''m having trouble with a program I''m currently developing. My problem is I have a table of values basically and I''m trying to construct a line graph. Something like this:
(These are the ones on the Y axis I want to plot)
102
130
236
32
76
260
...ect
I''m having trouble with determining the scale factor, or Y axis increment.. or whatever you''d like to call it.
Basically how much each pixel represents on the Y axis. Get it?
/
/
/ <-- increment for this axis...
/
/--------
0 1 2 3 4
I can''t seem to figure this part out. Any help is appreciated.
Thanks,
Shaun Patterson