0%

PGPLOT 编译和运行

编译并运行程序

在编译并链接好程序后,执行程序是会提示:

Graphics device/type (? to see list, default /Xserve):

这里我们输入“?”,查看一下可用的设备,我的如下所示,这个设备列表与安装时修改的drives.list相关联。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Graphics device/type (? to see list, default /Xserve): ?
PGPLOT v5.2.2 Copyright 1997 California Institute of Technology
Interactive devices:
/XWINDOW (X window window@node:display.screen/xw)
/XSERVE (A /XWINDOW window that persists for re-use)
Non-interactive file formats:
/GIF (Graphics Interchange Format file, landscape orientation)
/VGIF (Graphics Interchange Format file, portrait orientation)
/LATEX (LaTeX picture environment)
/NULL (Null device, no output)
/PNG (Portable Network Graphics file)
/TPNG (Portable Network Graphics file - transparent background)
/PS (PostScript file, landscape orientation)
/VPS (PostScript file, portrait orientation)
/CPS (Colour PostScript file, landscape orientation)
/VCPS (Colour PostScript file, portrait orientation)
Graphics device/type (? to see list, default /Xserve):

默认输出之屏幕,如上述图像所有,然后我选择/PS,就会发现在可执行程序相同目录中多了一个文件PGPLOT.ps文件(这个对于科研人员使用Latex调用图比较方便)。

处无为之事,行不言之教;作而弗始,生而弗有,为而弗恃,功成不居!

欢迎关注我的其它发布渠道