RobinMosedale
Posts: 44
Joined: Tue Jan 29, 2013 10:55 am

FORTRAN X-Windows

Wed Feb 27, 2013 1:26 pm

I'm using gFORTRAN to refresh some rusty programming skills and finding it rewarding. However, I would like to be able to produce screen output a little more prettily than the usual line output, say, open a window, postion text, highlight it and so forth, nothing more sphisticated than that.

Can anyone recommend any library, module, or package that can be easilty bolted on, which is simple to use, for both X_Windows Linux environment and the Windows 7/Windows environment?

Thanks

Robin

User avatar
stephj
Posts: 80
Joined: Thu Jun 21, 2012 1:20 pm
Location: Lancashire, UK

Re: FORTRAN X-Windows

Thu Feb 28, 2013 12:09 pm

A simple option would be to print your data to a file as an HTML web page wrapped up in the neccessary HTML tags etc. to format it as you want, and then get a browser to display it afterwards.

That way Windows/IE or Linux/Firefox can both display the results.

User avatar
PeterO
Posts: 5030
Joined: Sun Jul 22, 2012 4:14 pm

Re: FORTRAN X-Windows

Thu Feb 28, 2013 12:42 pm

Google throws up some options for using gtk+-2.0 with fortran..
https://github.com/jerryd/gtk-fortran
I've no experience of using them myself.
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
TideMan
Posts: 230
Joined: Fri Jun 22, 2012 8:08 am
Location: ChCh, NZ

Re: FORTRAN X-Windows

Thu Feb 28, 2013 9:54 pm

I use gnuplot with gfortran, but it's a low level language, so you need lots of commands to get a nice plot.
However, there are plenty of web resources and the book:
Gnuplot in Action by Philipp Janert
is very good.

gnuplot is what is used in Octave (a free Matlab clone), I believe.
If you wish in this world to advance, your merits you're bound to enhance.
You must stir it and stump it and blow your own trumpet, or trust me you haven't a chance.
Ruddigore, G&S

Return to “Other programming languages”