C++ 绘图引擎
在C/C++领域,我不知道一个用于创建图形的轻量级、美观的库。 我感兴趣的是用“GnUpTrand”功能创建一个C++库作为一个长期项目-首先用绘图行: 出于这个原因,我对论文、关键词、结构等感兴趣 在第一步中,创建一种图像格式(如Jpeg或PNG,EPS)就足够了,而无需使用窗口来绘制 希望我能得到信息,知道在哪里可以找到:)C++ 绘图引擎,c++,plot,C++,Plot,在C/C++领域,我不知道一个用于创建图形的轻量级、美观的库。 我感兴趣的是用“GnUpTrand”功能创建一个C++库作为一个长期项目-首先用绘图行: 出于这个原因,我对论文、关键词、结构等感兴趣 在第一步中,创建一种图像格式(如Jpeg或PNG,EPS)就足够了,而无需使用窗口来绘制 希望我能得到信息,知道在哪里可以找到:) 问候语试试这个lib。它是Ch/C++: 绘图非常简单 #include <math.h> #include <chplot.h>
问候语试试这个lib。它是Ch/C++: 绘图非常简单
#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();
}
#包括
#包括
int main(){
int numpoints=36;
双数组x[numpoints],y[numpoints];
类CPlot图;
林达(0,360,x,36);
y=sin(x*M_PI/180);
plotxy(x,y,“Ch图”,“xlabel”,“ylabel”,“和图);
/*创建postscript文件*/
plot.outputType(plot_outputType_文件,“postscript eps”、“demo.eps”);
plot.plotting();
/*创建一个png文件*/
plot.outputType(plot_outputType_文件,“png颜色”,“demo.png”);
plot.plotting();
}