PDA

View Full Version : graphing in C


MikeL
01-21-02, 20:03
Given a series of values of x and y, how can one graph them on an xy plane using C?Given a series of values of x and y, how can one graph them on an xy plane using C?

Manish
01-22-02, 10:31
What's the problem with graphing ?

If you want a simple X-Y graph, just plot points (or draw circles if points are fewer) by using putpixel(axisx+x, axisy-y) or circle() commands. Here "axis" can be half of the total x width or y width of your screen, so that the graph's origin will be centred on the screen.

johnwhittington
02-01-02, 12:14
you can make it in text if you make a small graph with ansi chars. hint: use a for loop