Free easy way to draw graphs and charts in C++?(在 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++ 中绘制图形和图表的免费简单方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 C++ 中绘制图形和图表的免费简单方法?


- 静态初始化顺序失败 2022-01-01
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- 使用/clr 时出现 LNK2022 错误 2022-01-01
- C++ 协变模板 2021-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- STL 中有 dereference_iterator 吗? 2022-01-01
- 从python回调到c++的选项 2022-11-16
- 如何对自定义类的向量使用std::find()? 2022-11-07
- 近似搜索的工作原理 2021-01-01
- Stroustrup 的 Simple_window.h 2022-01-01