Generate line graph for any benchmark?

2019-03-04 03:20发布

问题:

I had spent so many hours failing to find a line graph generator for my benchmark results that I just wanted to plug in. I tried quite a few like Google's chart API but it still seemed confusing or not graceful looking, I am clueless.

Examples of benchmark images I wished to make something like are this:

What specific applications /web services do you recommend for generating something even close to this? I want something "neat".

回答1:

You can use python mathplotlib, which generates beautiful graphs like:

(Source code)



回答2:

I use gnuplot. It is not a lib, but a separate executable file. You can output plotting data to one file, and plotting commands in another - script file, which refer to data file. Then call gnuplot with this script file. Another way is to use qwt. It is a real library, but it depends on Qt. If you already use Qt in your project, it is very straigth way to plot graphs. If not, then just use gnuplot