在C/C++领域,我不知道一个轻量级的、好看的创建图形的库。我感兴趣的是创建一个C++库,它的功能是作为一个长期项目--首先使用绘图行:)。
因此,我对论文、关键词、结构等等都感兴趣。
在第一步,创建一种图像格式,如Jpeg或PNG,EPS ,而不使用窗口进行绘图就足够了。
希望我能得到信息的去向:)
问候
发布于 2014-08-12 18:37:37
试试看这个地方。是Ch/C++:https://www.softintegration.com/docs/ch/plot/
Ploting就像
#include <math.h>
#include <chplot.h>
int main() {
int numpoints = 36;
array double x[numpoints], y[numpoints];
class CPlot plot;
lindata(0, 360, x, 36);
y = sin(x*M_PI/180);
plotxy(x, y, "Ch plot", "xlabel", "ylabel", &plot);
/* create a postscript file */
plot.outputType(PLOT_OUTPUTTYPE_FILE, "postscript eps", "demo.eps");
plot.plotting();
/* create a png file */
plot.outputType(PLOT_OUTPUTTYPE_FILE, "png color", "demo.png");
plot.plotting();
}https://stackoverflow.com/questions/25271488
复制相似问题