Mr Unix*, are you writing a program for Windows or MVS, or ... Unix?
Are you using a console window, a telnet window? Do you have access to a graphical interface?
Will it be good enough if each dot of your graph would be a character, or does it has to be a pixel?
I'm not familiar with wxWidgets, so I don't know if there is something you can easily reuse. Searching a bit with google wouldn't be a waste of time, however.
If you want to draw the graph yourself, that's actually not too involved as long as you don't need to make it very fancy. How to draw the graph depends a bit on what type of graph you want. If you have a linear graph, the just draw a single line. If you have points that should be linearly interpolated, then draw a line between each set of points. If you have another type of graph, then you'll probably want to follow the following approach:
for each horizontal pixel index
calculate X value corresponding to pixel index
calculate Y value corresponding to X value in graph
calculate vertical pixel index corresponding to Y value
draw line from previous pixel to this pixel
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky