Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

gnu plot with fortran 1

Status
Not open for further replies.

rk_19

Structural
Aug 7, 2012
71
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
 
Replies continue below

Recommended for you

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.
 
Still, what's the problem with that? You can just as easily install gnuplot on the other machine, if that's necessary.

TTFN
I can do absolutely anything. I'm an expert!
faq731-376 forum1529
 
thanks all, i have to see if my fortran package from 'Fortran tools' come with inbuilt library for plotting purposes. thanks once again
 
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.

 
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
 
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.
 
hi gsal, i understand that my fortran package (bought from ) 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.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor