Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Free easy way to draw graphs and charts in C++? [closed]

Tags:

c++

charts

I am doing a little exploring simulation and I want to show the graphs to compare the performance among the algorithms during run-time.

What library comes to your mind? I highly prefer those that come small as I'd love if it's easy for my instructor to compile my code. I've checked gdchart but it seems to be too heavy. I just want a simple x-y sort of timeline graph.

Google chart is of course out of the question, in case you've read this similar question.


Related post Scatter Plots in C++.

like image 508
syaz Avatar asked Apr 19 '09 13:04

syaz


People also ask

Can we draw graph in C?

You can draw lines between points to get a very good "graph" impression, but be careful not to incorrectly represent at definition gaps. E.g. drawing a line from (X=-0.1,Y=1/-0,1) to (X=0.1,Y=1/0,1) would be wrong. line(x1, y1, x2, y2);


1 Answers

My favourite has always been gnuplot. It's very extensive, so it might be a bit too complex for your needs though. It is cross-platform and there is a C++ API.

like image 183
moinudin Avatar answered Sep 25 '22 11:09

moinudin