在C中绘制图表 [英] Plotting Graph in C

查看:60
本文介绍了在C中绘制图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将图形绘制为我在C中的程序输出?它可以是简单的图形,例如二次曲线,例如
或两个变量之间的相关性。


谢谢

解决方案

" Chapman" < CH ** @ yahoo.com>写道:

是否可以将图形绘制为我在C中的程序输出?它可以是一个简单的图形,如二次曲线,例如
或两个变量之间的相关性。



当然,但不是没有使用标准C的扩展( comp.lang.c中唯一的

主题。请参考OS /实现特定的

新闻组。


问候


Irrwahn

-

不写:void main(...)

不使用gets()

不投回报malloc的值()

不要fflush(stdin)

读取clc-faq: http://www.eskimo.com/~scs/C-faq/top.html


"查普曼和QUOT; < CH ** @ yahoo.com>写道:

是否可以将图形绘制为我在C中的程序输出?它可以是一个简单的图形,如二次曲线,例如
或两个变量之间的相关性。




当然。只需输出一个PostScript格式的文本文件,即绘制

图表。

-

"您的更正是100%正确且0%很有帮助。干得好!"

- 理查德希思菲尔德


" Chapman" < CH ** @ yahoo.com>写道:

是否可以将图形绘制为我在C中的程序输出?它可以是一个简单的图形,如二次曲线,例如
或两个变量之间的相关性。




你可以使用外部程序gnuplot。
http://www.gnuplot.info/


再见


Is it possible to plot the graph as an output of my program in C? It can be
a simple graph as quadratic curves for example
or a correlation between 2 variables only.

Thanks

解决方案

"Chapman" <ch**@yahoo.com> wrote:

Is it possible to plot the graph as an output of my program in C? It can be
a simple graph as quadratic curves for example
or a correlation between 2 variables only.


Sure, but not without using extensions to standard C (the one and only
topic in comp.lang.c). Please refer to an OS/implementation specific
newsgroup.

Regards

Irrwahn
--
do not write: void main(...)
do not use gets()
do not cast the return value of malloc()
do not fflush( stdin )
read the c.l.c-faq: http://www.eskimo.com/~scs/C-faq/top.html


"Chapman" <ch**@yahoo.com> writes:

Is it possible to plot the graph as an output of my program in C? It can be
a simple graph as quadratic curves for example
or a correlation between 2 variables only.



Sure. Just output a text file in PostScript format that plots
the graph.
--
"Your correction is 100% correct and 0% helpful. Well done!"
--Richard Heathfield


"Chapman" <ch**@yahoo.com> writes:

Is it possible to plot the graph as an output of my program in C? It can be
a simple graph as quadratic curves for example
or a correlation between 2 variables only.



you can use an external program as gnuplot .
http://www.gnuplot.info/

bye


这篇关于在C中绘制图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆