Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using GNUPLOT from Microsoft Visual C++

3,680 views
Skip to first unread message

arn...@attglobal.net

unread,
Jul 3, 2003, 2:58:14 AM7/3/03
to
Hi,

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

Hans-Bernhard Broeker

unread,
Jul 3, 2003, 6:35:25 AM7/3/03
to
arn...@attglobal.net wrote:

> 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.

Bill Stones

unread,
Jul 9, 2003, 8:18:47 PM7/9/03
to
Hans,

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.

Hans-Bernhard Broeker

unread,
Jul 10, 2003, 11:34:29 AM7/10/03
to
Bill Stones <mail2...@yahoo.com> wrote:

> 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.

Bill Stones

unread,
Jul 10, 2003, 8:20:43 PM7/10/03
to
Thanks a lot.I found the link and I'll look into the examples more
carefully.

saeedo...@gmail.com

unread,
Aug 3, 2017, 8:52:25 PM8/3/17
to
Hello friend, have you connected gnuplot with Visual Studio.? Actually I want to draw plots from my C++ program, please guide me in this regards. Thanks

John Edwards

unread,
Aug 11, 2017, 6:05:56 AM8/11/17
to
On 04/08/2017 01:52, saeedo...@gmail.com wrote:
> Hello friend, have you connected gnuplot with Visual Studio.? Actually I want to draw plots from my C++ program, please guide me in this regards. Thanks

https://sourceforge.net/projects/gnuplotc/
0 new messages