日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

gnuplot_i 文件的说明,翻译成的中文

發布時間:2025/4/16 编程问答 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 gnuplot_i 文件的说明,翻译成的中文 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

gnuplot_i的簡短介紹
------------------------------------

gnuplot_i正式應該稱為gnuplot管道,是一種友好的編程方式實現用C語言調用gnuplot畫圖.
畫圖的具體步驟操作如下:
1通過一個gnuplot_ctrl型指針,打開gnuplot,調用方式為gnuplot_init(),如下

??? gnuplot_ctrl * h ;
??? h = gnuplot_init() ;
h將被作為gnuplot工作區的指針,通過其它庫函數調用h(自己也可以給指針取不同的名字,以下用h作指針變量)
2.圖像參數設置如下? ?

??? gnuplot_setstyle(h, style)
?????? (設置畫圖風格)

??? gnuplot_set_xlabel(h, label)
??????? 設置x軸坐標

??? gnuplot_set_ylabel(h, label)
?????? 設置Y軸坐標

??? 例子:

??? gnuplot_setstyle(h, "impulses") ;
??? gnuplot_set_xlabel(h, "my X label") ;
??? gnuplot_set_ylabel(h, "my Y label") ;

最有用的套路,應該是gnuplot_cmd(),它允許你給gnuplot傳送特征的字符串,如下所示:
?? ?

??? gnuplot_cmd(h, command, ...)

??? 例子:

??? char myfile[] = "/data/file_in.dat" ;
??? int? i ;
?? ?
??? gnuplot_cmd(h, "plot '%s'", myfile);
??? for (i=0 ; i<10 ; i++) {
??????? gnuplot_cmd (h, "plot y=%d*x", i);
??? }

接下來的命令,需要輸出給postscript這種腳本語言文件curve.ps完成
? ?
??? gnuplot_cmd(h, "set terminal postscript") ;
??? gnuplot_cmd(h, "set output \"curve.ps\"") ;

? ?

??? 3.? 一些畫圖命令:
??? gnuplot_plot_slope()
??????? 畫一條斜線
??? gnuplot_plot_equation()
??????? 畫一個函數圖像

??? gnuplot_plot_x()
??????? 畫用戶給定數據的第一維,作為X軸,畫圖(單變量畫圖)

??? gnuplot_plot_xy()
??????? 畫兩個變量的圖

??? gnuplot_resetplot()
??????? 清除之前的畫圖



??? 4.? 關閉gnuplot指針變量:關閉此變量是非常重要的,否則其它畫圖產生的臨時文件將不會在緩存中刪除
??? gnuplot_close(h) ;


See examples of gnuplot_i use in the provided files
'example.c' and 'anim.c'.


Some more points before you start using gnuplot_i
-------------------------------------------------



??? gnuplot_i is completely free software. Use it for
?? ?whatever you want to do with it without any fee, and do not
?? ?hesitate to send feedback to me if you wish:
?? ?
??????? <ndevilla@free.fr>

??? If you can do it, I would appreciate a mention somewhere
??? that you are using 'gnuplot_i' in your application.
??? Something like:
??? "This software uses the gnuplot_i library written by
??? N.Devillard <ndevilla@free.fr>
??? If you are using gnuplot_i for a web-based
??? application, you can also add a link to the gnuplot home
??? page:

??????? http://ndevilla.free.fr/gnuplot/

??? 注意:當在一個程序中需要寫打開多個畫圖對話框的時候,要注意函數與所打開對話框的對應關系

??? 例如:

??? h1 = gnuplot_init() ;
??? h2 = gnuplot_init() ;

??? gnuplot_plot_equation(h1, "sin(x)", "sine on first session");
??? gnuplot_plot_equation(h2, "log(x)", "log on second session") ;
??? sleep(3) ;
??? gnuplot_close(h1) ;
??? gnuplot_close(h2) ;
警告:不要忘記關閉對話框!
?? ?

? ?

編譯運行examples
-------------------------------

可以使用已經提供的Makefile文件進行編譯, 或者以如下方式進行編譯:

To compile the gnuplot_i module:
% cc -I. -c gnuplot_i.c

編譯兩examples:
% cc -o example example.c gnuplot_i.o
% cc -o anim anim.c gnuplot_i.o

使用Makefile進行編譯:
% make
% make tests

Try it out to see if it works:
% test/anim?? ??? ??? ??? ?-- Will show an animated sine wave
% test/example?? ??? ??? ?-- Will show various functions in use
% test/sinepng?? ??? ??? ?-- Will generate a PNG file with a sine wave
N. Devillard

總結

以上是生活随笔為你收集整理的gnuplot_i 文件的说明,翻译成的中文的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 特黄老太婆aa毛毛片 | 国产一区二区三区小说 | 精品国产鲁一鲁一区二区张丽 | 精品人妻在线播放 | 91精品国产91综合久久蜜臀 | 欧美特黄视频 | www.激情五月.com | aaaaaav | 日韩黄色片子 | 狗爬女子的视频 | 成人片在线看 | 特黄一区二区三区 | 少妇高潮av久久久久久 | 在线视频欧美日韩 | 艳母免费在线观看 | 亚洲欧美日韩图片 | 欧美一区二区黄色 | 亚洲视频一区在线播放 | 影音先锋在线播放 | 夏目彩春娇喘呻吟高潮迭起 | 欧美亚一区二区三区 | 制服丝袜av在线 | 亚洲小说区图片区都市 | cao死你| 国产免费一区二区三区在线播放 | 日本二区三区视频 | 老头把女人躁得呻吟 | 亚洲www. | av电影在线不卡 | 色站综合| 国产一区二区综合 | 国产成人欧美一区二区三区的 | 国产精品一区二区不卡 | 中文字幕人妻丝袜二区 | 日韩精品网站 | 成年人av网站 | 久久无码性爱视频 | 日韩亚洲一区二区 | 丁香六月五月婷婷 | 国产欧美中文字幕 | 激情小视频 | 好吊日精品视频 | 曰本无码人妻丰满熟妇啪啪 | 美女成人在线 | 亚洲av永久一区二区三区蜜桃 | 爽妇综合网 | 黄色激情视频在线观看 | 91久久综合 | 国产美女91| 一本久久综合亚洲鲁鲁五月天 | 午夜黄色 | 日本精品成人 | 亚洲综合第一 | 精品一区二区免费视频 | 欧亚乱熟女一区二区在线 | 欧美第四页 | 国产精品久久色 | 国产精品人人 | 99国产精品久久久久 | jizz欧美性20| 午夜88| 久久人妻精品白浆国产 | 一本一道久久a久久 | 少妇视频一区二区三区 | 久艹伊人 | 手机看片国产精品 | 一区二区在线视频免费观看 | 麻豆免费观看视频 | 成人看| 成人免费视频国产 | 欧美日韩亚洲在线观看 | 制服丝袜手机在线 | 涩涩综合 | 日韩精品一区二区三区在线 | 精品视频在线观看一区二区 | 美女屁股眼视频免费 | 欧美大片一级 | 国产精品手机在线观看 | 成人av免费在线播放 | 精品一区二区三区四区五区 | 久av在线| av小说免费在线观看 | 精品福利影院 | 精品丰满人妻无套内射 | 91在线无精精品入口 | 国产永久在线 | 午夜影视在线观看 | 久草福利在线 | 成人免费高清在线播放 | 亚洲天天综合网 | 一区二区在线精品 | www超碰在线 | 亚洲精品在线视频观看 | 白浆av | 日韩av一区在线观看 | 精品一卡二卡三卡 | 欧美浓毛大泬视频 | 免费无遮挡网站 | 成人禁污污啪啪入口 |