From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1I5SwT-0001U4-AB for garchives@archives.gentoo.org; Mon, 02 Jul 2007 20:56:17 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l62KswIP004385; Mon, 2 Jul 2007 20:54:58 GMT Received: from mate.dm.uba.ar (mate.dm.uba.ar [157.92.22.1]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l62KsuFb004329 for ; Mon, 2 Jul 2007 20:54:57 GMT Received: from pc-matias.dm.uba.ar ([157.92.22.138]:53219 "EHLO localhost" smtp-auth: "matiasg" TLS-CIPHER: "EDH-RSA-DES-CBC3-SHA keybits 168/168 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mate.dm.uba.ar with SUBMITSA id S4628142AbXGBUyz (ORCPT ); Mon, 2 Jul 2007 17:54:55 -0300 X-Comment: RFC 2476 MSA function at mate.dm.uba.ar logged sender identity as: matiasg Date: Mon, 2 Jul 2007 17:54:54 -0300 From: =?iso-8859-1?Q?Mat=EDas_Gra=F1a?= To: gentoo science Mailing List Subject: Re: [gentoo-science] gnuplot + python Message-ID: <20070702205454.GM23185@dm.uba.ar> References: <20070702150705.GG23185@dm.uba.ar> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-science@gentoo.org Reply-to: gentoo-science@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20070702150705.GG23185@dm.uba.ar> User-Agent: Mutt/1.5.13 (2006-08-11) Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id l62KswIn004385 X-Archives-Salt: bdf19113-4c5e-48e4-854b-b2237c7b9840 X-Archives-Hash: a87a619848b541c2037f965c85a544a9 On Mon, Jul 02, 2007 at 12:07:05PM -0300, Mat=EDas Gra=F1a wrote: > Hi; I'm doing some easy 3D plotting these days and I've come to this > situation. I just need to plot a few dots in 3D-space. I've been using > gnuplot for this, as it allows to rotate the picture with the mouse, > giving a good impression of where the dots actually are. > So far so good, but now I want it to interact with the python code I us= e > to compute the position of the dots. There's gnuplot-py for this, but i= t > seems to have the problem that once it launches a window, gnuplot does > not listen to mouse clickings on it. So I can tell my python program to > draw the dots, but then I can't rotate them as I could within a gnuplot > session. >=20 > So, I'm looking to either > a) a way to have an interaction between gnuplot and python, or > b) another program/library that can be launched from python and able to > plot 3D dots and rotate them with the mouse. >=20 > Any insight or advice is welcome. >=20 > Thanks, > Mat=EDas [two answers here] Thanks for the answers! Nope: 'm' doesn't do anything on gnuplot window, at least in my case. Clutter seems promising, but for the time being it is much more than what I need. So far, I resorted to communicating with gnuplot via popen. It seems to work fine. Mat=EDas --=20 gentoo-science@gentoo.org mailing list