好的 C 绘图库吗?

发布于 2024-08-02 01:24:55 字数 378 浏览 5 评论 0原文

我的问题在精神上与这个问题非常相似: 什么是最好的绘图Python 库?

在 C 中绘制数据的最佳选择是什么?我是否最好放弃库并生成可以直接输入到 gnuplot

我提出这个问题的动力是能够可视化 DSP 转换,同时研究我之前的问题中发现的优秀资源。 所以重点实际上只是 2D 图、直方图等; 3D现在并不那么重要。

My question is very similar in spirit to this question: What is the best plotting library for Python?

What is my best bet for plotting data in C? Am I better off forgoing a library and just generating data that I can feed directly into gnuplot?

My impetus for this question is being able to visualize DSP transformations while studying the excellent resources found in an earlier question of mine. So the focus is really just 2D plots, histograms, etc.; 3D isn't as important right now.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

哥,最终变帅啦 2024-08-09 01:24:55

我认为 gnuplot 的方向是正确的。 对于您想要的,它非常强大且灵活。

但是,您可能需要考虑直接从应用程序写入 gnuplot,而不是创建数据并提供数据。 有一个 gnuplot 的 ANSI C API 可用。

I think you are on the right track with gnuplot. For what you want, it's very powerful and flexible.

However, you may want to consider writing to gnuplot directly from your application instead of creating data and feeding it. There is an ANSI C API to gnuplot available.

又怨 2024-08-09 01:24:55

MathGL 是跨平台(Windows/Linux/MacOS)免费(GPL、LGPL 核心)绘图库。 它速度快,有很多图形类型,可以绘制巨大的数据数组,可以生成位图和矢量(EPS/SVG/U3D)输出,可以使用OpenGL,可以在控制台中运行(不需要X),有很多接口(Fortran/Python/...与其他语言结合),有 FLTK/Qt 小部件,可以创建自己的带有绘图的窗口,等等。

MathGL is cross-platform (Windows/Linux/MacOS) free (GPL, LGPL for core) plotting library. It is fast, have a lot of graphics types, can plot huge data arrays, can produce bitmap and vector (EPS/SVG/U3D) output, can use OpenGL, can run in console (don't need X), have many interfaces (Fortran/Python/... to combine with other languages), have FLTK/Qt widgets, can create its own window with plotting, and so on.

人间☆小暴躁 2024-08-09 01:24:55

libgd。 但是,如果您没有大量数据要绘制,那么正如其他人建议的那样,gnuplot 是一个好方法。

libgd. But if you don't have a lot of data to plot, gnuplot is a good way to go, as others suggested.

虐人心 2024-08-09 01:24:55

我发现 PLplot 这似乎很有趣。 我现在正在尝试,我将在这里发布有关它的快速评论,因为我会了解更多有关它的信息。

更新:乍一看,它的设计似乎很糟糕,因为它增加了应用程序的交互性(恕我直言,库不应该直接与用户交互,除非这是库的目的)。

I've found PLplot which seems to be interesting. I'm trying it right now and I'll publish here a quick review about it as I'll know something more about it.

Update: As first blush it seems to be badly designed, since it adds interactivity to the application (IMHO a library should never directly interface with the user unless this is the library's purpose).

夏见 2024-08-09 01:24:55

在 Mac OS X 上,您还可以将数据直接输入 Plot,该 Plot 具有基于 Perl 的脚本和用于非交互式数据处理的命令行界面:

http://plot.micw.eu

对于 Mac OS X C-ish 绘图框架,请参阅 core-plot。

On Mac OS X you may also feed your data directly into Plot which features Perl-based scripting and a command-line interface for non-interactive data processing:

http://plot.micw.eu

In terms of a Mac OS X C-ish plotting framework see core-plot.

许久 2024-08-09 01:24:55

你看过 AntiGrain 吗? 它是多平台的

have you looked at AntiGrain? it's multiplatform

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文