Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #203

Re: How to re-use the same output device/xterm each time gnuplot is invoked?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: How to re-use the same output device/xterm each time gnuplot is invoked?
Followup-To comp.graphics.apps.gnuplot
Date Fri, 01 Apr 2011 10:54:55 -0700
Organization gnuplot development team
Lines 29
Message-ID <in53hi$r4g$1@dont-email.me> (permalink)
References <in3j2j$og8$1@speranza.aioe.org> <in4prt$fs8$1@speranza.aioe.org>
Reply-To sfeam@users.sourceforge.net
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
Injection-Date Fri, 1 Apr 2011 17:54:58 +0000 (UTC)
Injection-Info mx03.eternal-september.org; posting-host="joalffpZlyHxFtpFd/PRrw"; logging-data="27792"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LP7roZSKPFSGqFqEqcEWn"
User-Agent KNode/4.4.3
Cancel-Lock sha1:yxQYLCAPUjBxz+0O2muUpy/EAA4=
Xref x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:203

Followups directed to: comp.graphics.apps.gnuplot

Show key headers only | View raw


Nasser M. Abbasi wrote:

>> So, basically I want the gnuplot script to do something like
>>
>> --------------------
>> IF window_ID allready exist, then send all output to it else create a
>> new window and assign it window_ID make plot to window_ID
>> ---------------------
>>
>> Any ideas how to do this, or even if it possible?

It is possible.  See "help set term x11"

From the manual:
 The `x11` terminal can connect to X windows previously created by an outside
 application via the option `window` followed by a string containing the
 X ID for the window in hexadecimal format.  Gnuplot uses that external X
 window as a container since X does not allow for multiple clients selecting
 the ButtonPress event.  In this way, gnuplot's mouse features work within
 the contained plot window.

I suspect that is an overly complicated way of achieving the effect
you want, but it's certainly one possible approach.

Another possible approach is to have each CALL SYSTEM(...) trigger an update
of an *.eps or *.png file on disk.  Then you just leave ghostview or an image
display program running continuously, set to update the screen display whenever
the underlying file is re-written.

	Ethan

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How to re-use the same output device/xterm each time gnuplot is invoked? "Nasser M. Abbasi" <nma@12000.org> - 2011-03-31 21:07 -0700
  Re: How to re-use the same output device/xterm each time gnuplot is invoked? geep <geep@boursomail.com> - 2011-04-01 15:09 +0000
    Re: How to re-use the same output device/xterm each time gnuplot is invoked? sfeam <sfeam@users.sourceforge.net> - 2011-04-01 10:54 -0700
  Re: How to re-use the same output device/xterm each time gnuplot is invoked? James Waldby <not@valid.invalid> - 2011-04-01 16:41 +0000

csiph-web