Can somebody tell me an easy way using GNUPLOT within a C++ program
written for MC Visual C++?
May be there is a DLL or something like that.
Thank You for any hint.
Rainer
> Can somebody tell me an easy way using GNUPLOT within a C++ program
> written for MC Visual C++?
You can use _popen() to pass commands to the pgnuplot.exe helper
program invented expressly for this purpose. I'll pass them on to
wgnuplot.exe for execution.
> May be there is a DLL or something like that.
Somebody has one, but it never made it into the public.
--
Hans-Bernhard Broeker (bro...@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.
Would you have any idea of where to get more info on this, like
examples, etc.?
I've been trying to find how to use gnuplot for plotting from my
programs in Windows. I found out that I'd have to use pgnuplot and
"pipe" the data to it. I guess that's what the "_popen()" thing you
wrote does. (BTW I do not understand any C, so is this _popen a C
command?) But as far as I know the "pipes" are a typical way to transfer
data between apps on Unix/Linux. I haven't found much info on pipes for
Windows. In order to use pgnuplot.exe do I have to start learning about
Linux pipes and then try to do the same thing under Win?
Is there any kind of tutorioal or example of how to use 'pgnuplot',
preferably from Fortran or Pascal sources, but C would also be O.K?
Thanks.
> Would you have any idea of where to get more info on this, like
> examples, etc.?
Example snippets have been posted here several times in the past. If
you don't like to deal with these details directly, you may want to
give N. Devilla's interface layer a try. There's a link to it on
www.gnuplot.info.
> Windows. In order to use pgnuplot.exe do I have to start learning about
> Linux pipes and then try to do the same thing under Win?
Not really. It helps to understand the concepts, though. gnuplot is,
after all, a Unix-born program.