interfacing with gnuplot without pipes

  • Thread starter Alexander Stippler
  • Start date
A

Alexander Stippler

Hello,

I want to visualize numerical results with gnuplot. The easiest way would be
to
use a pipe to gnuplot. But I want to be platform independent, just relying
on
the C++-standard. What is the recommended way of getting this functionality?

regards,
alex
 
P

Phlip

Alexander said:
I want to visualize numerical results with gnuplot. The easiest way would be
to
use a pipe to gnuplot. But I want to be platform independent, just relying
on
the C++-standard. What is the recommended way of getting this
functionality?

The C++ Standard does not mention GNUplot. This is obviously just an
oversight - expect ISO to fix it soon.

But until then, rely on this recent post: "I found gnuplot is really nice.
There are some c/c++ interfaces, through which gunplot command could be sent
from c/c++ program. --phony"

Since advising phony to use GNUplot, I also advised him to switch to Python
and use BLT (under PythonMegaWidgets). These systems are (almost) as
portable as C++, but they don't have C++'s issues with exposed plumbing. And
BLT provides interactive hooks so you can supply drill-down, pans, zooms,
etc.

Again: Why are you using C++?
 
V

Victor Bazarov

Alexander Stippler said:
I want to visualize numerical results with gnuplot. The easiest way would be
to
use a pipe to gnuplot. But I want to be platform independent, just relying
on
the C++-standard. What is the recommended way of getting this
functionality?

There is none.

You have an option of writing your gnuplot commands into a file
and then use 'system' function to run gnuplot, but the contents
of the string you pass to 'system' has got to be system-specific.
So, no truly system-independent way.

V
 
E

E. Robert Tisdale

Alexander said:
I want to visualize numerical results with gnuplot.
The easiest way would be to use a pipe to gnuplot.
But I want to be platform independent,
just relying on the C++-standard.
What is the recommended way of getting this functionality?

I used Google

http://www.google.com/

to search for

+"gnuplot interface" +"C++"

and I found lots of stuff. This one

http://ndevilla.free.fr/gnuplot/

just happened to appear at the top of the list.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top