Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating A Graph

Status
Not open for further replies.

mikeol

Programmer
Apr 22, 2003
8
IE
Hi,
Can anyone help me? I'm looking for a way to draw a trend graph, plotting the integer contents of two buffers against the buffer index. Say I have:
int buffA[50], buffB[50];
I want to plot buffA[j] and buffB[j] on the Y-axis against j on the X-axis for j = 0 to 49.
Anyone got any ideas?
- Thanks
 
Are you looking for something low-tech, like ASCII-art, or something more polished like you would get from a spreadsheet application?

If it's the latter, you need to provide details of your operating system, compiler and graphics library (if you have one).
If you don't have a graphics library, you still need to say which OS/Compiler, so that we can suggest libraries to look at.

--
 
I am compiling with Microsoft Visual C++ as a win32 console application, but if necessary I guess I could convert to a full windows application. If there are graphics libraries included in Microsoft Visual C++, I am not familiar with them. There's no real need for anything fancy, but the data in the buffers are samples of a waveform, so I it needs to be clear enough to display the wave which is generated by connecting successive samples.
-Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top