Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello. I have a project that I haven't started yet as I am looking for a plotting library.

If there's any out there(lightweight and re-destributable) I'd be happy to use it.

It can also be a GDI wrapper.

All I need it to do is be able to draw two axes and a key representing the chart/graph data.

Any suggestions?

EDIT: The whole project is in C and not C++ and / or other managed code technologies.
However if it can be a C++ written library, that is fine provided that it exports C compatible methods (not classes).

Hope this makes it more clear now.
Posted
Updated 26-Oct-11 8:55am
v2
Comments
CPallini 26-Oct-11 4:41am    
For such a basic task you may also consider developing your own library.
Albert Holguin 26-Oct-11 15:53pm    
Why not just use GDI? ...it's not that hard to use... ???

PLplot[^] or MathGL[^]
 
Share this answer
 
Comments
chx101B 26-Oct-11 19:12pm    
Thank you, MathGL will do it. Props to you for that. I love you(no hommo).
Espen Harlinn 26-Oct-11 19:21pm    
Excellent links :)
I guess that by plotting you are thinging about a chart (and not something more sinister :) )
There is one project here on CP that may suit you:
A flexible charting library for .NET[^]

[Updated for c]
Cairo is a 2D graphics library with support for multiple output devices
http://cairographics.org/[^]
On the Examples page[^] - you will find links to various charting examples/implmentations

If you don't mind using GTK+ have a look at GTK/Cairo Line Graph widget[^]

Best regards
Espen Harlinn
 
Share this answer
 
v3
Comments
CPallini 26-Oct-11 5:21am    
I guess '.NET' would be overkill for a Win32 C project.
Andrew Brock 26-Oct-11 5:22am    
The question is for C. Not sure how flexible the author is on this, but I took this to mean not C++ or managed code.
chx101B 26-Oct-11 14:56pm    
You got that right. It is for C only.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900