public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-science] gnuplot + python
@ 2007-07-02 15:07 Matías Graña
  2007-07-02 15:34 ` Redouane Boumghar
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Matías Graña @ 2007-07-02 15:07 UTC (permalink / raw
  To: gentoo science Mailing List

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 use
to compute the position of the dots. There's gnuplot-py for this, but it
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.

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.

Any insight or advice is welcome.

Thanks,
Matías
-- 
gentoo-science@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-science] gnuplot + python
  2007-07-02 15:07 [gentoo-science] gnuplot + python Matías Graña
@ 2007-07-02 15:34 ` Redouane Boumghar
  2007-07-02 16:21 ` Marcus Priesch
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: Redouane Boumghar @ 2007-07-02 15:34 UTC (permalink / raw
  To: gentoo-science

Hello Matias,

Some little insight even if I have no experience with gnuplot-py yet :
Try enabling the mouse clicks events by hitting the letter 'm' while in focus
of your plotting window.
This may enable the mouse rotation feature for your 3D plot .... or not :)
 
-- 
Redouane BOUMGHAR
Physics, Remote Sensing and Digital Imagery Engineer


Matías Graña 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 use
> to compute the position of the dots. There's gnuplot-py for this, but it
> 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.
> 
> 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.
> 
> Any insight or advice is welcome.
> 
> Thanks,
> Matías

-- 
gentoo-science@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-science] gnuplot + python
  2007-07-02 15:07 [gentoo-science] gnuplot + python Matías Graña
  2007-07-02 15:34 ` Redouane Boumghar
@ 2007-07-02 16:21 ` Marcus Priesch
  2007-07-02 20:54 ` Matías Graña
  2007-07-07 17:04 ` M. Edward (Ed) Borasky
  3 siblings, 0 replies; 11+ messages in thread
From: Marcus Priesch @ 2007-07-02 16:21 UTC (permalink / raw
  To: gentoo-science

Hi,

On Mon, 2007-07-02 at 12:07 -0300, Matías Graña wrote:
[...]
> 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.

hey, if you dont dare to get your hands dirty - you dont mind to do all
the diagram scaling and drawing by hand - you could give clutter a try -
i tried basic stuff on the weekend - and it looks promising ;)

although it is targeted at full featured UI's in 3d, i think at least
the "plot 3d dots and rotate them with the mouse" can be done with a few
lines of code ... donno if it fits the rest of your needs ... 

	http://www.clutter-project.org/

hope this helps :)

regards,
mexx.

> Any insight or advice is welcome.
> 
> Thanks,
> Matías

-- 
gentoo-science@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-science] gnuplot + python
  2007-07-02 15:07 [gentoo-science] gnuplot + python Matías Graña
  2007-07-02 15:34 ` Redouane Boumghar
  2007-07-02 16:21 ` Marcus Priesch
@ 2007-07-02 20:54 ` Matías Graña
  2007-07-02 21:02   ` Markus Dittrich
  2007-07-03  9:05   ` Sébastien Fabbro
  2007-07-07 17:04 ` M. Edward (Ed) Borasky
  3 siblings, 2 replies; 11+ messages in thread
From: Matías Graña @ 2007-07-02 20:54 UTC (permalink / raw
  To: gentoo science Mailing List

On Mon, Jul 02, 2007 at 12:07:05PM -0300, Matías Graña 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 use
> to compute the position of the dots. There's gnuplot-py for this, but it
> 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.
> 
> 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.
> 
> Any insight or advice is welcome.
> 
> Thanks,
> Matías

[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ías

-- 
gentoo-science@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-science] gnuplot + python
  2007-07-02 20:54 ` Matías Graña
@ 2007-07-02 21:02   ` Markus Dittrich
  2007-07-03  9:05   ` Sébastien Fabbro
  1 sibling, 0 replies; 11+ messages in thread
From: Markus Dittrich @ 2007-07-02 21:02 UTC (permalink / raw
  To: gentoo science Mailing List

[-- Attachment #1: Type: TEXT/PLAIN, Size: 678 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 2 Jul 2007, Matías Graña wrote:
>> b) another program/library that can be launched from python and able to
>> plot 3D dots and rotate them with the mouse.
>>
>> Any insight or advice is welcome.
>>

You may want to check out dev-python/matplotlib though I
am not sure right now if it does the rotation thingy.

cheers,
Markus


- -- 
Markus Dittrich (markusle)
Gentoo Linux Developer
Scientific applications
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGiWf8xlRwCwb7k40RAtU+AJ9YwvhbTyB/lr+k6npfU0rPXDjLZgCfbG2l
02cHw9sfHqb5Bxu/MY9rQKU=
=1sUW
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-science] gnuplot + python
  2007-07-02 20:54 ` Matías Graña
  2007-07-02 21:02   ` Markus Dittrich
@ 2007-07-03  9:05   ` Sébastien Fabbro
  1 sibling, 0 replies; 11+ messages in thread
From: Sébastien Fabbro @ 2007-07-03  9:05 UTC (permalink / raw
  To: gentoo-science


ipython also has some gnuplot support, although never used it.
There is a whole section on 3D plotting with python in [1].

Sebastien
[1] http://www.scipy.org/Topical_Software

Matías Graña wrote:
> 
> 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ías
> 

-- 
gentoo-science@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-science] gnuplot + python
  2007-07-02 15:07 [gentoo-science] gnuplot + python Matías Graña
                   ` (2 preceding siblings ...)
  2007-07-02 20:54 ` Matías Graña
@ 2007-07-07 17:04 ` M. Edward (Ed) Borasky
  2007-07-07 21:16   ` Alan Jackson
  3 siblings, 1 reply; 11+ messages in thread
From: M. Edward (Ed) Borasky @ 2007-07-07 17:04 UTC (permalink / raw
  To: gentoo-science

Matías Graña 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 use
> to compute the position of the dots. There's gnuplot-py for this, but it
> 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.
> 
> 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.
> 
> Any insight or advice is welcome.
> 
> Thanks,
> Matías

There are oodles of scientific interfaces to Python. I'm guessing there
is at least one that will do this. I'm not a Pythonista, however, I'm a
Rubyist, so I can't give you any names, or tell you whether what you
want to do is in Portage or not. One you might want to check is Sage
(http://sagemath.org/). Another is StatPy
(http://www.astro.cornell.edu/staff/loredo/statpy/)

However, this is a very common mode of interaction in exploratory data
analysis, and just about every statistics package out there can do this.
xlisp-stat used to be in Portage, but it's in Lisp. And R is in Portage
for sure and is what *I* use to do this sort of thing. If you don't mind
learning another language, I'd recommend R.

There is supposedly an R-Python interface available, but since I don't
know Python, I've never bothered to check it out. If you want to go this
way, do a Google search for "RSPython".
-- 
gentoo-science@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-science] gnuplot + python
  2007-07-07 17:04 ` M. Edward (Ed) Borasky
@ 2007-07-07 21:16   ` Alan Jackson
  2007-07-08  0:19     ` M. Edward (Ed) Borasky
  0 siblings, 1 reply; 11+ messages in thread
From: Alan Jackson @ 2007-07-07 21:16 UTC (permalink / raw
  To: gentoo-science

Sounds like you want ggobi or Rggobi

http://www.ggobi.org/
http://www.ggobi.org/rggobi/

On Sat, 07 Jul 2007 10:04:15 -0700
"M. Edward (Ed) Borasky" <znmeb@cesmail.net> wrote:

> Matías Graña 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 use
> > to compute the position of the dots. There's gnuplot-py for this, but it
> > 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.
> > 
> > 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.
> > 
> > Any insight or advice is welcome.
> > 
> > Thanks,
> > Matías
> 
> There are oodles of scientific interfaces to Python. I'm guessing there
> is at least one that will do this. I'm not a Pythonista, however, I'm a
> Rubyist, so I can't give you any names, or tell you whether what you
> want to do is in Portage or not. One you might want to check is Sage
> (http://sagemath.org/). Another is StatPy
> (http://www.astro.cornell.edu/staff/loredo/statpy/)
> 
> However, this is a very common mode of interaction in exploratory data
> analysis, and just about every statistics package out there can do this.
> xlisp-stat used to be in Portage, but it's in Lisp. And R is in Portage
> for sure and is what *I* use to do this sort of thing. If you don't mind
> learning another language, I'd recommend R.
> 
> There is supposedly an R-Python interface available, but since I don't
> know Python, I've never bothered to check it out. If you want to go this
> way, do a Google search for "RSPython".
> -- 
> gentoo-science@gentoo.org mailing list


-- 
-----------------------------------------------------------------------
| Alan K. Jackson            | To see a World in a Grain of Sand      |
| alan@ajackson.org          | And a Heaven in a Wild Flower,         |
| www.ajackson.org           | Hold Infinity in the palm of your hand |
| Houston, Texas             | And Eternity in an hour. - Blake       |
-----------------------------------------------------------------------
--
gentoo-science@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-science] gnuplot + python
  2007-07-07 21:16   ` Alan Jackson
@ 2007-07-08  0:19     ` M. Edward (Ed) Borasky
  2007-07-08  0:25       ` M. Edward (Ed) Borasky
  0 siblings, 1 reply; 11+ messages in thread
From: M. Edward (Ed) Borasky @ 2007-07-08  0:19 UTC (permalink / raw
  To: gentoo-science

Alan Jackson wrote:
> Sounds like you want ggobi or Rggobi
> 
> http://www.ggobi.org/
> http://www.ggobi.org/rggobi/
> 
> On Sat, 07 Jul 2007 10:04:15 -0700
> "M. Edward (Ed) Borasky" <znmeb@cesmail.net> wrote:
> 
>> Matías Graña 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 use
>>> to compute the position of the dots. There's gnuplot-py for this, but it
>>> 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.
>>>
>>> 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.
>>>
>>> Any insight or advice is welcome.
>>>
>>> Thanks,
>>> Matías
>> There are oodles of scientific interfaces to Python. I'm guessing there
>> is at least one that will do this. I'm not a Pythonista, however, I'm a
>> Rubyist, so I can't give you any names, or tell you whether what you
>> want to do is in Portage or not. One you might want to check is Sage
>> (http://sagemath.org/). Another is StatPy
>> (http://www.astro.cornell.edu/staff/loredo/statpy/)
>>
>> However, this is a very common mode of interaction in exploratory data
>> analysis, and just about every statistics package out there can do this.
>> xlisp-stat used to be in Portage, but it's in Lisp. And R is in Portage
>> for sure and is what *I* use to do this sort of thing. If you don't mind
>> learning another language, I'd recommend R.
>>
>> There is supposedly an R-Python interface available, but since I don't
>> know Python, I've never bothered to check it out. If you want to go this
>> way, do a Google search for "RSPython".
>> -- 
>> gentoo-science@gentoo.org mailing list
> 
> 
I haven't been able to get them to build ... is ggobi even in Portage??
-- 
gentoo-science@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-science] gnuplot + python
  2007-07-08  0:19     ` M. Edward (Ed) Borasky
@ 2007-07-08  0:25       ` M. Edward (Ed) Borasky
  2007-07-08  1:07         ` M. Edward (Ed) Borasky
  0 siblings, 1 reply; 11+ messages in thread
From: M. Edward (Ed) Borasky @ 2007-07-08  0:25 UTC (permalink / raw
  To: gentoo-science

M. Edward (Ed) Borasky wrote:
> Alan Jackson wrote:
>> Sounds like you want ggobi or Rggobi
>>
>> http://www.ggobi.org/
>> http://www.ggobi.org/rggobi/
>>
>> On Sat, 07 Jul 2007 10:04:15 -0700
>> "M. Edward (Ed) Borasky" <znmeb@cesmail.net> wrote:
>>
>>> Matías Graña 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 use
>>>> to compute the position of the dots. There's gnuplot-py for this, but it
>>>> 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.
>>>>
>>>> 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.
>>>>
>>>> Any insight or advice is welcome.
>>>>
>>>> Thanks,
>>>> Matías
>>> There are oodles of scientific interfaces to Python. I'm guessing there
>>> is at least one that will do this. I'm not a Pythonista, however, I'm a
>>> Rubyist, so I can't give you any names, or tell you whether what you
>>> want to do is in Portage or not. One you might want to check is Sage
>>> (http://sagemath.org/). Another is StatPy
>>> (http://www.astro.cornell.edu/staff/loredo/statpy/)
>>>
>>> However, this is a very common mode of interaction in exploratory data
>>> analysis, and just about every statistics package out there can do this.
>>> xlisp-stat used to be in Portage, but it's in Lisp. And R is in Portage
>>> for sure and is what *I* use to do this sort of thing. If you don't mind
>>> learning another language, I'd recommend R.
>>>
>>> There is supposedly an R-Python interface available, but since I don't
>>> know Python, I've never bothered to check it out. If you want to go this
>>> way, do a Google search for "RSPython".
>>> -- 
>>> gentoo-science@gentoo.org mailing list
>>
> I haven't been able to get them to build ... is ggobi even in Portage??
Just checked ... ggobi isn't in Portage. I downloaded it and will be
testing it this evening. If it works, I'll file an enhancement to get it
in Portage if it's got an open source license. My recollection is that
it didn't, but I downloaded a tarball, so maybe it's open now.
-- 
gentoo-science@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-science] gnuplot + python
  2007-07-08  0:25       ` M. Edward (Ed) Borasky
@ 2007-07-08  1:07         ` M. Edward (Ed) Borasky
  0 siblings, 0 replies; 11+ messages in thread
From: M. Edward (Ed) Borasky @ 2007-07-08  1:07 UTC (permalink / raw
  To: gentoo-science

M. Edward (Ed) Borasky wrote:
> Just checked ... ggobi isn't in Portage. I downloaded it and will be
> testing it this evening. If it works, I'll file an enhancement to get it
> in Portage if it's got an open source license. My recollection is that
> it didn't, but I downloaded a tarball, so maybe it's open now.

1. Compiles fine from upstream source on both -march=athlon-tbird and
-march=athlon64.
2. There's already an enhancement bug in Bugzilla to get this in
Portage, https://bugs.gentoo.org/show_bug.cgi?id=31416. Interesting bug,
number, eh? I suppose *some* package had to get that one, but I think
it's fitting that a scientific package enhancement got "pi".
3. It's marked "maintainer wanted" but there is an ebuild on the bug,
which I haven't tested.
4. I'm installing the R package (rggobi) now from CRAN ... I'll post
another message when I get a chance to test it.
-- 
gentoo-science@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-07-08  1:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-02 15:07 [gentoo-science] gnuplot + python Matías Graña
2007-07-02 15:34 ` Redouane Boumghar
2007-07-02 16:21 ` Marcus Priesch
2007-07-02 20:54 ` Matías Graña
2007-07-02 21:02   ` Markus Dittrich
2007-07-03  9:05   ` Sébastien Fabbro
2007-07-07 17:04 ` M. Edward (Ed) Borasky
2007-07-07 21:16   ` Alan Jackson
2007-07-08  0:19     ` M. Edward (Ed) Borasky
2007-07-08  0:25       ` M. Edward (Ed) Borasky
2007-07-08  1:07         ` M. Edward (Ed) Borasky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox