473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

interfacing with gnuplot without pipes

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
Jul 22 '05 #1
4 8549
"Alexander Stippler" <st**@mathematik.uni-ulm.de> wrote...
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
Jul 22 '05 #2
Alexander Stippler wrote:
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++?

--
Phlip
http://www.xpsd.org/cgi-bin/wiki?Tes...UserInterfaces
Jul 22 '05 #3
Alexander Stippler wrote:
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.

Jul 22 '05 #4
E. Robert Tisdale wrote:
Alexander Stippler wrote:
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.

The above links look good, however, its worth noting that the C++
library (as well as other language libraries which use gnuplot, all
depend on the presence of POSIX threads in the underlying OS.
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rama Calaga | last post by:
Hi, I use both python and gnuplot a lot, but I am unable to find a way to embed gnuplot "window/canvas" into tkinter. BLT option in PMW is not so powerful and not so great, any suggestions ?? ...
0
by: Cedric | last post by:
This is a 3 weeks old problem, but having found a solution (and having looked for one here, finding only this message), I'm replying now. From: Jive (someone@microsoft.com) Subject: Upgrade...
3
by: Blues | last post by:
Hey, I have used two great models - Tkinter and Gnuplot.py - for a while. I can display an image on a Canvas widget using Tkinter and I can also generate a gnuplot from Python on the fly in a...
9
by: syd | last post by:
I don't even know where to begin. This is just bizarre. I just picked up the Gnuplot.py module (a light interface to gnuplot commands) and was messing around with it today. I've got a tiny...
6
by: Joseph Suprenant | last post by:
Hello all, I have a C++ program, it does some calculations on things and then prints out a file in the format in which GNUPLOT can use. So my question is how would i call GNUPLOT from my C++...
0
by: Kamil Grymuza | last post by:
Can anyone help me controlling gnuplot from my program? I can't use any 3rd party libraries or so. I found on the net, that i can be done via pipes, but i don't know how to use them. All i need to...
1
by: Nicola Kaiser | last post by:
Hi, I´m using Gnuplot via gnuplot.py and I´m looking for a way to get the plotting output (terminal set to png in my case) piped in a string instead of to stdout or a file. Is there any...
4
by: skorpio11 | last post by:
Hi, I've been having some problems trying some basic plotting commands with gnuplot.py. My setup is the Python 2.3 Enthought edition and my script looks as: from scipy import * from scipy...
3
by: arslanburney | last post by:
Hello. Was trying to create a simple plotting function. Wasnt working however. If i write the same code without putting it inside a function it works. :S. Could some1 tell me the problem? Heres the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.