Re: [sugar] Matplotlib vs PyCha

2008-02-07 Thread Tomeu Vizoso
On Thu, 2008-02-07 at 02:20 -0500, Arjun Sarwal wrote:
 Hi,
 
 In continuation with my previous email[1] in which I had mentioned
 that I was looking for python packages that would enable me to do
 graphing/plotting of data in various formats. I searched through a
 series of packages. One that I really liked was gtksheet (or
 gtkextra?)[2]  which had various plotting functions (and also a
 spreadsheet like interface, which I would eventually need) but there
 hasn't been any development on that since a long time and that package
 depends pygtk1 and python 2.4 so it seems I can't use it.

Seems like gtkextra has continued to be developed and was ported to
gtk2. It is also packaged in F7:

http://koji.fedoraproject.org/koji/packageinfo?packageID=1987

But I think that doesn't include python bindings :/

If you decided to try, wrapping gtk widgets with pygtk uses to be quite
straightforward. You could base those bindings on 

http://python-gtkextra.cvs.sourceforge.net/python-gtkextra/python-gtkextra2/

I'm not sure we want this lib in the platform, so you would have to
include all these pieces inside your activity bundle.

Tomeu

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Matplotlib vs PyCha

2008-02-07 Thread Rafael Enrique Ortiz Guerrero
Hi Arjun,

I think Matplotlib  would be the best choice  taking in count  that we
probably want to work analysing bio-signals, i see that Matplotlib has
splendid  examples  like

mri_with_eeg.pyhttp://matplotlib.sourceforge.net/screenshots/mri_with_eeg.pyand
eeg.py http://matplotlib.sourceforge.net/screenshots/eeg.py

So we have a nice framework to begin with.

 Also without knowing too much about it, the problem  about the large
size could be worked out as you suggested.


cheers!

On Feb 7, 2008 2:20 AM, Arjun Sarwal [EMAIL PROTECTED] wrote:

 Hi,

 In continuation with my previous email[1] in which I had mentioned
 that I was looking for python packages that would enable me to do
 graphing/plotting of data in various formats. I searched through a
 series of packages. One that I really liked was gtksheet (or
 gtkextra?)[2]  which had various plotting functions (and also a
 spreadsheet like interface, which I would eventually need) but there
 hasn't been any development on that since a long time and that package
 depends pygtk1 and python 2.4 so it seems I can't use it.


 After searching through more packages it seems to me that I have two
 options --

 (A) PyCha [3]
 Pros
 * Very small package - 30KB. Just need to include these few python files
 [4]

 Cons
 * Very limited types of representations - just line, bar and pie chart
 * For displaying it within a gtk window one needs to do some hackish
 stuff. like making a cairo surface and cairo context and copying the
 surface from within the python modules to the main program etc.


 (B) Matplotlib [5]
 Pros
 * A __huge__ variety of display methods a large number of graphs, and
 a large number of built in mathematical functions
 * A large community develops on and/or around it. Quite well known.
 * There is a well defined and supported method for embedding it in gtk

 Cons
 * Large size. Just the rpm is about 5MB. It requires python-dateutils
 and pytz. The pytz rpm is another about 6MB



 I am veering towards Matplotlib because it has some really amazing
 functionality (see the screenshots page[4])

 The solution to the large size could be that we fork the upstream
 package by removing certain parts that we don't require. There are
 things that we don't need. For example in the rpm that I downloaded I
 noticed that we could remove the examples and also remove support for
 other backends (just keep the gtk backend support)



 Please give comments/feedback/suggestions that would help set a
 direction for development.


 thanks
 Arjun

 [1] http://lists.laptop.org/pipermail/sugar/2008-January/004211.html
 [2] http://gtkextra.sourceforge.net/
 [3] http://www.lorenzogil.com/projects/pycha/#Documentation
 [4] http://www.lorenzogil.com/projects/pycha/browser/trunk/src
 [5] http://matplotlib.sourceforge.net/screenshots.html
 ___
 Sugar mailing list
 [EMAIL PROTECTED]
 http://lists.laptop.org/listinfo/sugar




-- 
Rafael Enrique Ortiz Guerrero
One Laptop Per Child
[EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Matplotlib vs PyCha

2008-02-07 Thread Arjun Sarwal
Interestingly pytz is actually just 600kB and not 6MB! It is wrongly
written here :)
http://rpm.pbone.net/index.php3/stat/4/idpl/5320110/com/pytz-2006p-2.fc7.noarch.rpm.html

So on the disk, after installation of python-matplotlib and pytz, the
total extra space taken was 7MB,

The examples are about 1.5MB in matplotlib, so taking those out should
further reduce things by 1.5MB


Arjun

On Feb 7, 2008 11:05 AM, Tomeu Vizoso [EMAIL PROTECTED] wrote:
 On Thu, 2008-02-07 at 02:20 -0500, Arjun Sarwal wrote:
  Hi,
 
  In continuation with my previous email[1] in which I had mentioned
  that I was looking for python packages that would enable me to do
  graphing/plotting of data in various formats. I searched through a
  series of packages. One that I really liked was gtksheet (or
  gtkextra?)[2]  which had various plotting functions (and also a
  spreadsheet like interface, which I would eventually need) but there
  hasn't been any development on that since a long time and that package
  depends pygtk1 and python 2.4 so it seems I can't use it.

 Seems like gtkextra has continued to be developed and was ported to
 gtk2. It is also packaged in F7:

 http://koji.fedoraproject.org/koji/packageinfo?packageID=1987

 But I think that doesn't include python bindings :/

 If you decided to try, wrapping gtk widgets with pygtk uses to be quite
 straightforward. You could base those bindings on

 http://python-gtkextra.cvs.sourceforge.net/python-gtkextra/python-gtkextra2/

 I'm not sure we want this lib in the platform, so you would have to
 include all these pieces inside your activity bundle.

 Tomeu


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel