473,569 Members | 2,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8561
"Alexander Stippler" <st**@mathemati k.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 PythonMegaWidge ts). 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
4745
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 ?? thanks ram
0
1506
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 woes: Numeric, gnuplot, and Python 2.4 Date: 2004-12-11 18:45:10 PST > Here's my sitch: > > I use gnuplot.py at work, platform Win32. > I want to...
3
2728
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 separate window. Does anyone know how to display such a gnuplot on the Canvas widget with an image in it? Thanks. Michael
9
4703
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 script, but it only works from the command line about half the time! In the python interpreter, 100%. Ipython, 100%. I'm not kidding. #!/bin/env...
6
10693
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++ program. I know in some operating systems you can do system("gnuplot"); But not with red hat 7.3. So could some kind soul help me out? After it...
0
1486
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 do i to plot some data, maybe replot and then close the gnuplot window. Thanks Kamil
1
3351
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 method in gnuplot.py that does this for me? If not, I tried something like:
4
4542
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 import gplt import scipy.io.array_import #import Gnuplot
3
6181
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 code: # File name Plotting2 import Gnuplot def plot(original, expected, actual):
0
7701
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7677
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7979
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.