Linux上的FORTRAN图形库(FORTRAN graphic library on Linux)
我开始学习FORTRAN并需要图形库来绘制输出
由于我不熟悉FORTRAN环境,我想要求推荐我习惯了matplotlib,最好是寻找类似的东西。 类似于可用功能和工作流程概念
通过Synaptic搜索,似乎PGPLOT是可行的方式
PS我知道我可以用不同的方式在Python中包装FORTRAN代码
I started learning FORTRAN and need graphic library to plot output
As I'm not familiar with FORTRAN environment, I wanted to ask for recommendationI'm used to matplotlib, and preferably looking for something similar. Similar in means of available features, and workflow concepts
Searching through Synaptic it seems like PGPLOT is the way to go
PS I know I could wrap FORTRAN code in Python in different ways
最满意答案
我用过PGPLOT,dislin和PLPLOT。 在这个时代,我会使用dislin或PLPLOT。 PGPLOT最后一次更新于2001年,只有一个FORTRAN 77接口,可以与Fortran 90/95/2003一起使用,但编译器将无法检查您的调用是否具有正确的参数。 另外两个有Fortran 95接口。 对于dislin和PLPLOT,我认为dislin有更好的记录。 dislin还提供GUI输入的小部件。 dislin可以免费用于某些用途; 对于商业用途,应该购买许可证。 PLPLOT是LGPL下的开源软件。
I've used PGPLOT, dislin and PLPLOT. In this era I'd use dislin or PLPLOT. PGPLOT was last updated in 2001 and only has a FORTRAN 77 interface, which can be used with Fortran 90/95/2003 but the compiler won't be able to check that your calls have the correct arguments. The other two have Fortran 95 interfaces. Of dislin and PLPLOT, I think dislin to be better documented. dislin also provides widgets for GUI input. dislin is free for some uses; for business uses one is supposed to purchase a license. PLPLOT is open source under the LGPL.
相关问答
更多-
如何在linux下运行fortran程序?[2022-09-04]
在 linux 上用 intel fortran 或 gfortran 重新编译一下,然后运行即可 -
windows和linux运行fortran区别?[2022-02-26]
1.我的测试结果,是在windows下执行效率快。我是用同样的Intel Fortran编译器进行测试的。优化参数也都一样。在windows下大约能快20%。在windows下用Compaq Fortran也是比Linux下用Intel Fortran快。原因不知道。正在猜想ing。2.无论什么平台的Fortran编译器,对于标准Fortran的语法之类的都是一样的。如果你都是遵循标准来写的话,两者是完全一样的。注意:在IBM UNIX下面的XLF编译器,对语法要求比较严格,写的时候要注意。其余像Intel ... -
fortran文件在linux下的运行问题[2022-12-31]
考虑可能是文件系统格式问题 试试看dos2unxi,或者unix2dos这2个命令在文件传输以后。 -
这应该做的伎俩 find . -name '*' -exec file {} \; | grep -o -P '^.+: \w+ image' 示例输出: ./navigation/doc/Sphärische_Trigonometrie-Dateien/bfc9bd9372f650fd158992cf5948debe.png: PNG image ./navigation/doc/Sphärische_Trigonometrie-Dateien/6564ce3c5b95ded313b84fa918b32 ...
-
GCC的Fortran编译器名称已更改: g77已被替换为gfortran ,后者处理Fortran 95以及可能更新的变体。 Ubuntu中的软件包叫做gfortran : sudo apt-get install gfortran (或使用突触) Fedora中的软件包名为gfortran,是gcc的一部分,您可能已经拥有: sudo yum install gcc (或使用pirut) 类似的搜索也适用于您的分配。 更新:在RedHat 4.1.2上,该软件包似乎被称为gcc4-gfortran ...
-
开普勒和更新,即计算能力3.0及以上。 https://developer.nvidia.com/cudnn 支持在Windows,Linux和MacOS系统上使用Pascal,Kepler,Maxwell,Tegra K1或Tegra X1 GPU。 Kepler and newer, ie compute capability 3.0 and above. https://developer.nvidia.com/cudnn Supported on Windows, Linux and MacOS s ...
-
你想要pygame , Allegro或SDL与SDL_gfx 。 所有这些都可以通过最流行的软件包存储库获得。 准备好习惯处理表面,图形基元,blitting等。 学习曲线并不大,但如果你以前从未做过图形,它仍然是一个重要的范例转变。 You want pygame, Allegro, or SDL with SDL_gfx. All of these are available through the most popular package repositories. Be prepared to g ...
-
英特尔Fortran编译器可以“购买前试用”,您可以在此处找到它。 Intel Fortran compiler is available as "try before buy", you can find it here.
-
为什么我的C ++程序不能正确加载我的FORTRAN库?(Why won't my C++ program properly load my FORTRAN library?)[2022-10-14]
您正在尝试将在MSYS下使用gfortran创建的DLL库与使用C ++的Visual Studio项目相结合。 在Windows中创建正确的DLL文件可能会非常棘手,原因很多,例如调用约定,编译器标志和函数可见性。 在经历gfortran时候一切正常可能在技术上是可行的,但不推荐。 有两种主要方法。 1)首先将Fortran代码转换为C或C ++,然后将该代码直接集成到主C ++项目中(最简单)或使用常规方法将其编译为DLL(最好使用Visual Studio保留单个工具链)。 您提到您有Fortran ... -
linux上的共享库问题(shared library problems on linux)[2023-01-05]
从字面上看,链接器可能正在寻找“libXaw.so”。 是在/ usr / lib中吗? 如果没有,您可以尝试将其添加为libXaw7.so.7.0.0中的另一个软链接。 The linker may be looking, literally, for "libXaw.so". Is that in /usr/lib? If not, you could try adding it as another soft link from libXaw7.so.7.0.0.