Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

gnu plot with fortran

gnu plot with fortran

gnu plot with fortran

hi, i have gfortran from 'fortran tools' which came with gnuplot. my doubt is if i make a exe file incorporating a call to gnuplot, will that work on a different pc (which doesnt have gnuplot??). the reason is i wish to make a exe file which is to be distributed across windows pc's, it should accept some coordinates from user and then plot the graph - is there a better way ?? thanks

RE: gnu plot with fortran

I don't think it works that way with gnuplot; I suspect the other pc would need gnuplot installed.

What you need is a library that you can compile into your program that would allow you to produce (static) plots or graphs in a format that can be open by a typically installed software in the other compupter...like a pdf or png or jpg kind of format.

There are libraries out there that work that way, like PLplot, DISLIN, etc.

RE: gnu plot with fortran

thanks all, i have to see if my fortran package from 'Fortran tools' come with inbuilt library for plotting purposes. thanks once again

RE: gnu plot with fortran

I don't think your Fortran would come with a plotting tool out of the box; those are typically third party libraries that you download and install...but at least you only have to do this once in the computer you are working on and not in all those that you are planning to deploy your program to.

RE: gnu plot with fortran

Noted gsal. i use codeblock v16 for fortran.. any guidance on how to link the libraries from DISLIN and on how to call the program from fortran? appreciate any guidance on subject matter. thanks once agains

RE: gnu plot with fortran

You would need to follow their instructions; if it is DISLIN you prefer, go to their website and follow their instructions.

I don't think DISLIN is open source or free for all use; so, make sure you read their License and that your use of it does not violate it.

Other than that...right now is a very good time to start learning how to download and install program.

RE: gnu plot with fortran

hi gsal, i understand that my fortran package (bought from http://www.fortran.com/the-fortran-company-homepag... ) includes gnuplot installation - does gnu plot works similar to plplot - i mean is it like i link the library in my project and then i can get the plotting facility when i distribute it across other pc's.

RE: gnu plot with fortran

I am not sure, but I don't think so. Don't know exactly what you got, but what I have read seems to indicate that the most you get is an interface to a child session of gnu plot; in other words, you still need gnu plot installed in every computer you want to deploy.

Again, if you do not want to have to deploy anything, you need to go with a linked-in kind of library, like PLPLOT, PSPLOT, PGPLOT, DISLIN, etc.

RE: gnu plot with fortran

thanks mate, all noted.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close