在 C++ 中绘制图形和图表的免费简单方法? [英] Free easy way to draw graphs and charts in C++?

查看:25
本文介绍了在 C++ 中绘制图形和图表的免费简单方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一些探索性模拟,我想展示图表以比较运行时算法之间的性能.

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

你想到了什么图书馆?如果我的导师很容易编译我的代码,我非常喜欢那些很小的代码.我检查了 gdchart 但它似乎太重了.我只想要一个简单的 x-y 类型的时间线图.

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.

相关帖子 C++ 中的散点图.

推荐答案

我最喜欢的是 gnuplot.它非常广泛,因此对于您的需求来说可能有点过于复杂.它是跨平台的,并且有 一个 C++ API.

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.

这篇关于在 C++ 中绘制图形和图表的免费简单方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆