Ada:绘制二维图 [英] Ada: plotting 2d graphs

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

问题描述

能够在一个Ada代码中绘制一个二维图形,而不是必须将值保存到文件并在之后使用外部绘图软件,这将会很有趣。在网上搜索使我得到了两个包:Win_IO和JEWL。尽管我已经能够使用WIN_IO,但是文档很差,刚开始使用它时,似乎无法调整画布的大小。我使用GPS编辑器,并且在运行Win_IO时发现有些字体在我的系统上不可用,并且输出会很难看。最后情节本身不会弹出在屏幕上;你必须点击正在编译和链接的文件的exe文件才能得到图形。



我也看了一下JEWL,但它没有似乎可以绘制图表。



是否有更多的Ada软件包可用于绘制2D图形



非常感谢...






我对GNAVI的体验:

安装说明位于

http://www.gnavi.org/index.php?Command=Class&ClassID=Start&CID=381



基本上,安装包括:
使用:


  1. 将此目录放在您的路径中

  2. cd至gnatcom并运行:make install

  3. cd至gwindows并运行:make UNICODE = 1 all

  4. 运行: gnavi_ide并享受: - )

但安装过程中出现错误:



C:\gnavi\gnatcom> install
安装GNATCOM .....
MAKE版本5.2 Copyright(c)1987, 2000 Borland
错误makefile 2:命令语法错误
* 1 make错误*
安装完成



C:\gnavi\gwindows> make UNICODE = 1 all
MAKE版本5.2 Copyright(c)1987,2000 Borland
错误makefile 2:命令语法错误
* 1尽管C:GNAVI在我的路径上,但IDE仍然抱怨在C:GNAVI中找到的icg.exe不在C:\\ Program Files \\ Common Files \\在路径上。这是软件尚未完全测试的麻烦!我非常失望,人们可以写出不负责任和不完整的安装说明。开发者是否发现普通用户是否可以安装他们的软件?



我也试着在 https://gna.org/projects/adadesigner



在这里,FireFox抱怨:连接不可信



gna.org使用无效的安全证书。



证书不可信,因为发行人证书是未知的。



我决定不访问这样的网站。

解决方案

PLplot 是创建科学地块的跨平台软件包。它有一个记录良好的 Ada绑定



附录:供参考,这些Ada 示例对应这些图片,按数字。


it would be interesting to be able to plot a 2D graph within an Ada code rather than having to save values say to file and use an external drawing software afterwards. A search on the web has taken me to two packages: Win_IO and JEWL. I have been able to use WIN_IO though but the documentation is quite poor and having just started using it, it seems that it is not possible to resize the size of the canvas. I use the GPS editor and I get complaint when running Win_IO that some fonts are not available on my system and that the output will be ugly. Finally the plot doesn't itself pop up on the screen; One has to click on the exe file of the file being compiled and linked so as to get the graph.

I have taken a look also at JEWL but it doesn't seem to be able to plot graphs.

Are there more Ada packages available out there for plotting 2D graphs.

Thanks a lot...


My experience with GNAVI:

The installation instructions are at

http://www.gnavi.org/index.php?Command=Class&ClassID=Start&CID=381

Basically the installation consists of: To use:

  1. Place this directory on your path
  2. cd to gnatcom and run: make install
  3. cd to gwindows and run: make UNICODE=1 all
  4. run: gnavi_ide and enjoy :-)

But the installation is plagued with errors:

C:\gnavi\gnatcom>install Installing GNATCOM..... MAKE Version 5.2 Copyright (c) 1987, 2000 Borland Error makefile 2: Command syntax error * 1 errors during make * Install Completed

C:\gnavi\gwindows>make UNICODE=1 all MAKE Version 5.2 Copyright (c) 1987, 2000 Borland Error makefile 2: Command syntax error * 1 errors during make *

And though C:GNAVI is on my path, the IDE still complains that icg.exe which is found in C:GNAVI is not on the path.`This is trouble with software which has not been fully tested!!! I was very disappointed that people can write irresponsible and incomplete installation instructions. Have the developers even found out that whether a normal user can install their software?

I have also try to look at AdaDesigner at https://gna.org/projects/adadesigner

Here, FireFox complains: This Connection is Untrusted

gna.org uses an invalid security certificate.

The certificate is not trusted because the issuer certificate is unknown.

I decided not to visit such a website.

解决方案

PLplot is a cross-platform package for creating scientific plots. It has a well-documented Ada binding.

Addendum: For reference, these Ada examples correspond to these images, by number.

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

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