百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

gnuplot-iostream

> 编程语言
开源

C++ 与 gnuplot 的接口

364 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

C++ 与 gnuplot 的接口


*** Direct questions or suggestions to [email protected] ***


Gnuplot-Iostream Interface

This interface allows gnuplot to be controlled from C++ and is designed to be the lowest hanging fruit. In other words, if you know how gnuplot works it should only take 30 seconds to learn this library. Basically it is just an iostream pipe to gnuplot with some extra functions for pushing data arrays and getting mouse clicks. Data sources include STL containers (eg. vector), Blitz++, Eigen, and armadillo. You can use nested data types like std::vector>> (as well as even more exotic types). Support for custom data types is possible.

This is a low level interface, and usage involves manually sending commands to gnuplot using the "<<" operator (so you need to know gnuplot syntax). This is in my opinion the easiest way to do it if you are already comfortable with using gnuplot. If you would like a more high level interface check out the gnuplot-cpp library (http://code.google.com/p/gnuplot-cpp).

Documentation is available at http://www.stahlke.org/dan/gnuplot-iostream but also you can look at the example programs (starting with "example-misc.cc").

Getting the source code

git clone https://github.com/dstahlke/gnuplot-iostream.git

Usage

See the examples source code for a quick intro. Documentation is at the project home page http://www.stahlke.org/dan/gnuplot-iostream . To build examples just type 'make'. There is an option you can edit in the Makefile to enable extra demos that require optional libraries.

Note for Windows users

Windows support basically works, but there are some troubles. For hints, see: https://github.com/dstahlke/gnuplot-iostream/wiki/Portability

Contributors

Dan Stahlke ([email protected]) Jens Mueller Robbie Morrison Daniel Di Marco Sylwester Arabas

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言