Re: [Matplotlib-users] [matplotlib-devel] v1.4.3rc1

2015-02-12 Thread Sandro Tosi
On Mon, Feb 9, 2015 at 1:00 AM, Thomas Caswell tcasw...@gmail.com wrote:
 Sorry about the bad tarball, I forgot to clean my git directory before
 generating it.  Another point in favor of using the gh tarball, I can't
 screw it up.

I switch to GH tarball, but I must say they are a lot different than
the SF ones (now we have 3 copies of the examples in doc/mpl_examples
lib/mpl_examples and examples) and contains quite a lot more files
(like the whole unit/ tree) and development files (.travis, .gitignore
and friends), but if that's a more reliable way to get new tarball,
I'm all for it - let's use this in the future :)

 This is the first I have seen that CVE.

 That PR is not included in 1.4.3 because it completely over-hauls how the
 Agg rendering works (and generated a whole bunch of other bugs along the
 way).

 Mike: Is there a way to fix up the security issues reported on just the
 1.4.x branch with out pulling that whole patch back?

there is a patch[1] attached to the Debian bug[2], I'm about to apply
to the package and see how it goes, you might want to
investigate+apply it in the final release

[1] 
https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=matplotlib-printf-buffer-overrun.patch;att=1;bug=775691
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775691

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] v1.4.3rc1

2015-02-08 Thread Sandro Tosi
On Sat, Feb 7, 2015 at 9:46 PM, Thomas Caswell tcasw...@gmail.com wrote:
 Well, creating the tarball on GH is a lot easier for us as it happens
 automatically!  I don't want to unilaterally change policy so I will create
 the files on SF.

 If you want to tracking GH for debian instead of SF I don't think that would
 be a bad idea, but I don't know how much of a hassle that would be for you.

Aaah dont worry about changing things :) I can reroute the tools to
track GH no problem, what I need to know if that's the place where the
next tarballs will be released; if so, I will update the tracking
straight away.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] v1.4.3rc1

2015-02-08 Thread Sandro Tosi
Hi,

On Sat, Feb 7, 2015 at 9:46 PM, Thomas Caswell tcasw...@gmail.com wrote:
 Sandro,

 Well, creating the tarball on GH is a lot easier for us as it happens
 automatically!  I don't want to unilaterally change policy so I will create
 the files on SF.

the release tarball contains __pycache__ directories and other binary
files, like lib/matplotlib/backends/_backend_agg.cpython-34m.so
(likely it was generated from a live directory, where some tests
have been run).

I just gave a brief look at updating the package and I noticed just
some failures in the tests related to test_axes_grid1 (but it might be
due to an un-clean env, I will re-run in a chroot to be sure), also
any reason not to include
https://github.com/matplotlib/matplotlib/commit/ba4016014cb4fb4927e36ce8ea429fed47dcb787#diff-51
? that would fix CVE-2013-1424

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] v1.4.3rc1

2015-02-07 Thread Sandro Tosi
On Sat, Feb 7, 2015 at 9:05 PM, Thomas Caswell tcasw...@gmail.com wrote:
 Sandro,

 Can you use the tarball from github
 (https://github.com/matplotlib/matplotlib/archive/v1.4.3rc1.tar.gz ?)

Sure I can, but since all the previous release (even RC) were done one
SF, we have our tools to monitor and download new releases pointing to
SF: do you plan to switch to GH for releasing tarballs too?

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] v1.4.3rc1

2015-02-07 Thread Sandro Tosi
Hi Thomas,

On Mon, Feb 2, 2015 at 5:37 AM, Thomas Caswell tcasw...@gmail.com wrote:
 Evening all,

 I have tagged the first release candidate for v1.4.3
 (https://github.com/matplotlib/matplotlib/releases/tag/v1.4.3rc1).
...
 Please kick the tires and give it a try!  If there are no major issues, the
 plan is to target 1.4.3 for next weekend.

could you also release a tarball on SF, so I can start updating the
debian package and give it a spin on our distro?

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] v1.4.1rc1

2014-10-16 Thread Sandro Tosi
Hi!
I just uploaded mpl 1.4.1-rc1 in Debian, so it can geta  bit of
exposure even on the weird HW we still support.

Cheers,
Sandro

On Tue, Oct 14, 2014 at 5:40 PM, Thomas Caswell tcasw...@gmail.com wrote:
 I am happy to announce that I have tagged a release candidate for
 1.4.1.  This is a bug-fix release which fixes most of the bug that
 popped up in 1.4.0 including:

  - setup.py does not die when freetype is not installed
  - reverts the changes to interactive plotting so `ion` will work as expected
  - sundry unicode fixes (looking up user folders, importing
 seaborn/pandas/networkx with macosx backend
  - fixed boxplot regressions

 The tarball is available from github, sourceforge and can be install via

pip install matplotlib==1.4.1rc1

 Tom



 --
 Thomas Caswell
 tcasw...@gmail.com

 --
 Comprehensive Server Monitoring with Site24x7.
 Monitor 10 servers for $9/Month.
 Get alerted through email, SMS, voice calls or mobile push notifications.
 Take corrective actions from your mobile device.
 http://p.sf.net/sfu/Zoho
 ___
 Matplotlib-devel mailing list
 matplotlib-de...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-devel



-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Problems installing matplotlib - compiling error

2013-01-28 Thread Sandro Tosi
On Mon, Jan 28, 2013 at 9:05 PM, Michael Droettboom md...@stsci.edu wrote:
 sudo apt-get build_dep python-matplotlib

small typo fix: the option name is 'build-dep'.

Cheers,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] RPM conflicts between basemap and matplotlib, mpl_toolkits/__init__.py(oc)

2012-11-01 Thread Sandro Tosi
Hello Daryl,

On Wed, Oct 31, 2012 at 9:48 PM, Daryl Herzmann akrh...@gmail.com wrote:
 Howdy,

 I built basemap 1.0.5 and matplotlib 1.2.0rc3 via the simple command 'python
 setup.py bdist_rpm' without an error that I can tell.  When I attempt to
 install them, I get a conflict between the two.  For example:

 file /usr/lib64/python2.6/site-packages/mpl_toolkits/__init__.pyc from
 install of basemap-1.0.5-1.x86_64 conflicts with file from package
 matplotlib-1.2.0rc3-1.x86_64
 file /usr/lib64/python2.6/site-packages/mpl_toolkits/__init__.pyo from
 install of basemap-1.0.5-1.x86_64 conflicts with file from package
 matplotlib-1.2.0rc3-1.x86_64

 Working around this error is easy with some rpm flags, but was curious what
 the proper solution for this situation is?

In Debian we're dealing with this situation letting 'matplotlib'
package owning the mpl_toolkits namespace (so only matplotlib will
install the __init__.py file in that directory) and basemap will
install stuff in mpl_toolkits/basemap directory and depending on
matplotlib (it requires to NOT install mpl_toolkits/__init__.py file
when install basemap, by either remote it when creating the package or
similar solution).

This way matplotlib package will create the namespace for all the
other packages to install modules in it, and avoiding conflicts like
the one you described.

HTH,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Documentation

2012-05-20 Thread Sandro Tosi
Hello Michael,

On Thu, May 3, 2012 at 1:25 PM, Michael Droettboom md...@stsci.edu wrote:
 ipython - **seems unnecessary**

removed

 python-configobj - **necessary only for a long abandoned experimental
 version of matplotlib**

removed

 python-epydoc - **obsolete**

removed

 python-qt4 - **not needed for build**

without it, there's several errors building the docs when rendering
the backend_qt4agg page, so I'll leave it

 python-qt4-dev - **not needed for build**
 python-qt-dev - **obsolete**

removed

 python-traits (= 2.0) - **not needed -- matplotlib doesn't use traits**

removed

 python-wxgtk2.8 - **not needed for build**

same as for

 python-wxgtk2.8-dbg - **not needed for build**

removed

Thanks for your review!

-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] v1.1.0 crashes upon exit

2011-11-02 Thread Sandro Tosi
Hi,

On Wed, Nov 2, 2011 at 18:12, John Jameson jwin...@gmail.com wrote:
 In the meantime I notice that with MPL v1.1.0 the program crashes at the end
 a most of my old MPL example programs (I use the GTKAgg backend for all of
 them). A typical way to end the program is:

             gtk.main_quit()

             raise SystemExit

 and it crashes on the call the ''raise SystemExit. A typical output is

 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:552:
 GtkWarning: gtk_widget_unrealize: assertion `GTK_IS_WIDGET (widget)' failed

   self.toolbar.destroy()

 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:552:
 GtkWarning: gtk_widget_is_toplevel: assertion `GTK_IS_WIDGET (widget)'
 failed

   self.toolbar.destroy()


it happens also on Debian:

$ python
Python 2.7.2+ (default, Oct  5 2011, 10:41:47)
[GCC 4.6.1] on linux2
Type help, copyright, credits or license for more information.
 import matplotlib
 matplotlib.use('GTKAgg')
 from matplotlib import pyplot as plt
 plt.plot((1,2), (2,4))
[matplotlib.lines.Line2D object at 0x2f7e6d0]
 plt.show()
/usr/lib/pymodules/python2.7/matplotlib/backends/backend_gtk.py:552:
GtkWarning: IA__gtk_widget_unrealize: assertion `GTK_IS_WIDGET
(widget)' failed
  self.toolbar.destroy()
/usr/lib/pymodules/python2.7/matplotlib/backends/backend_gtk.py:552:
GtkWarning: IA__gtk_widget_is_toplevel: assertion `GTK_IS_WIDGET
(widget)' failed
  self.toolbar.destroy()
Segmentation fault

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
RSA#174; Conference 2012
Save $700 by Nov 18
Register now#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] v1.1.0 crashes upon exit

2011-11-02 Thread Sandro Tosi
On Wed, Nov 2, 2011 at 20:39, Michael Droettboom md...@stsci.edu wrote:
 I'm not able to reproduce this, but I've seen similar issues in the
 past.  Can you tell me if this patch fixes it for you?

Nope, it doesn't.

 diff --git a/lib/matplotlib/backends/backend_gtk.py
 b/lib/matplotlib/backends/backend
 index 1012bbe..2efb72a 100644
 --- a/lib/matplotlib/backends/backend_gtk.py
 +++ b/lib/matplotlib/backends/backend_gtk.py
 @@ -556,6 +556,10 @@ class FigureManagerGTK(FigureManagerBase):
              self.window.destroy()
          if hasattr(self, 'canvas'):
              self.canvas.destroy()
 +        del self.toolbar
 +        del self.vbox
 +        del self.window
 +        del self.canvas
          self.__dict__.clear()   #Is this needed? Other backends don't
 have it.

          if Gcf.get_num_fig_managers()==0 and \


 On 11/02/2011 01:23 PM, Sandro Tosi wrote:
 Hi,

 On Wed, Nov 2, 2011 at 18:12, John Jamesonjwin...@gmail.com  wrote:
 In the meantime I notice that with MPL v1.1.0 the program crashes at the end
 a most of my old MPL example programs (I use the GTKAgg backend for all of
 them). A typical way to end the program is:

              gtk.main_quit()

              raise SystemExit

 and it crashes on the call the ''raise SystemExit. A typical output is

 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:552:
 GtkWarning: gtk_widget_unrealize: assertion `GTK_IS_WIDGET (widget)' failed

    self.toolbar.destroy()

 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:552:
 GtkWarning: gtk_widget_is_toplevel: assertion `GTK_IS_WIDGET (widget)'
 failed

    self.toolbar.destroy()

 it happens also on Debian:

 $ python
 Python 2.7.2+ (default, Oct  5 2011, 10:41:47)
 [GCC 4.6.1] on linux2
 Type help, copyright, credits or license for more information.
 import matplotlib
 matplotlib.use('GTKAgg')
 from matplotlib import pyplot as plt
 plt.plot((1,2), (2,4))
 [matplotlib.lines.Line2D object at 0x2f7e6d0]
 plt.show()
 /usr/lib/pymodules/python2.7/matplotlib/backends/backend_gtk.py:552:
 GtkWarning: IA__gtk_widget_unrealize: assertion `GTK_IS_WIDGET
 (widget)' failed
    self.toolbar.destroy()
 /usr/lib/pymodules/python2.7/matplotlib/backends/backend_gtk.py:552:
 GtkWarning: IA__gtk_widget_is_toplevel: assertion `GTK_IS_WIDGET
 (widget)' failed
    self.toolbar.destroy()
 Segmentation fault

 Cheers,


 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users




-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] v1.1.0 crashes upon exit

2011-11-02 Thread Sandro Tosi
On Wed, Nov 2, 2011 at 21:00, Benjamin Root ben.r...@ou.edu wrote:
 On Wed, Nov 2, 2011 at 2:50 PM, Sandro Tosi mo...@debian.org wrote:

 On Wed, Nov 2, 2011 at 20:39, Michael Droettboom md...@stsci.edu wrote:
  I'm not able to reproduce this, but I've seen similar issues in the
  past.  Can you tell me if this patch fixes it for you?

 Nope, it doesn't.


 Just yesterday, I started getting a crash-on-exit error for GTK.  The only
 thing I changed was to update my system-wide packages, which I think
 included some updates for gtk-related things.  Maybe something there broke
 something?

Oh sure, it could be - I just wanted to state that also on Debian we
have a similar problem than the one on Mac OS X, the tricky part is
identify what that is :)

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Importing pylab in python CGI script causes immediate failure

2010-06-01 Thread Sandro Tosi
Hello Mark,

On Tue, Jun 1, 2010 at 08:17, Mark Boorer markbo...@gmail.com wrote:
 And I have no idea why :(
 I'm fairly new to HTML, and I can't seem to see any meaningful errors in
 Firebug. Anyone have any experience with an error like this?

This is not HTML, it's a CGi, so a script executed server-side; to
know what's going wrong, check the log files of your web server.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Create and maintain an IRC chan for the matplotlib library

2010-04-14 Thread Sandro Tosi
On Wed, Apr 14, 2010 at 13:56, David Kremer david.kremer...@gmail.com wrote:
 Hello, I would like to ask you for an IRC channel in addition to the mailing
 list. If anyone would like to keep it up, it could be great to have a 24h/24h
 support on the irc channel.

FYI, mpl questions are accepted quite well on #scipy on freenode network.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] FW: matplotlib

2010-04-07 Thread Sandro Tosi
Hello,

On Wed, Apr 7, 2010 at 10:09, Padma TAN ta...@gis.a-star.edu.sg wrote:


 Hi,

 We have an error when running python matplotlib. Please assist. Thanks in
 advance! J


 [cheung...@changeme:/home/cheungcwe/CB3] python Python 2.6.2 (r262:71600,
 Sep 15 2009, 01:44:49) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
 Type help, copyright, credits or license for more information.
 import pylab
 pylab.scatter([1,2,3],[1,2,3])
 matplotlib.collections.CircleCollection object at 0x1d013090
 pylab.show()
 /usr/local/python2.6/lib/python2.6/site-packages/matplotlib/backends/__init__.py:41:
 UserWarning:
 Your currently selected backend, 'agg' does not support show().
 Please select a GUI backend in your matplotlibrc file
 ('/usr/local/python2.6/lib/python2.6/site-packages/matplotlib/mpl-data/matplotlibrc')
 or with matplotlib.use()
   (backend, matplotlib.matplotlib_fname()))

The problem is described here: in the matplotlibrc file, that's the
configuration file for mpl (so it's possibly the system one, in
/etc/), you have line like

backend = 'Agg'

The agg backend can't be used for interactive usage, so it doesn't
support any show() method, but only the one to save the figure as a
file, with savefig(). if you want to use mpl interactive, set the
backend to 'TkAgg' (it should be available on your system too) or
'GtkAgg' if you use Gnome or 'Qt4Agg' if you use KDE.

For more information, research for matplotlib backend in the mpl
documentation or on google

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Problems with Matplotlib and Python 2.6

2010-04-01 Thread Sandro Tosi
On Thu, Apr 1, 2010 at 13:53, Mauro Cavalcanti mauro...@gmail.com wrote:
 Dear ALL,

 Long time no see Well, I have recently upgraded from Ubuntu
 Intrepid to Jaunty (sure, I know that I'm a couple of versions
 delayed, but keeping a working system stable is essential). I did not
 a fresh install of Ubuntu, just upgraded using the system's facility
 for that. Previously I have did that from Ubuntu Hardy to Intrepid,
 with less (or no) troubles. However, in Jaunty the default Python
 interpreter has been upgraded from 2.5 to 2.6 and this is presenting
 the most annoying problems.

Yeah, let's all thanks Ubuntu for the its attention to quality and
well-prepared transitions...

 For now, the most vexing problem is that although Matplotlib is
 correctly installed and seemingly working, it does not show any
 graphics! For exemple, if I run the simple example from Matplotlib's
 website:

 Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
 [GCC 4.3.3] on linux2
 Type help, copyright, credits or license for more information.
 from pylab import randn, hist
 x = randn(1)
 hist(x, 100)

On Debian,

$ python2.6
Python 2.6.5rc2 (r265rc2:78822, Mar 11 2010, 16:48:00)
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more information.
 from pylab import randn, hist, show
 x = randn(1)
 hist(x, 100)
 show()

works as expected

$ python2.6 -c import matplotlib ; print matplotlib.__version__
0.99.1.1

Wouldn't you want to run ipython instead of python?

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Problems with Matplotlib and Python 2.6

2010-04-01 Thread Sandro Tosi
 I will check the matplotlibrc, but why should the Agg default backend not 
 work?

Because 'Agg' is a file-based backend, that you use when you want to
generate a file as output (a PNG, f.e.), so savefig() works while
show() not.

You are looking for a GUI backend, something like TkAgg, GTKAgg or
Qt4Agg, that calling show() will generate a window with the graph in
it.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Is it possible to build matplotlib in place ?

2009-09-30 Thread Sandro Tosi
Hi David,

On Wed, Sep 30, 2009 at 07:48, David Cournapeau
da...@ar.media.kyoto-u.ac.jp wrote:
 Hi,

    I tried to build matplotlib in place (setup.py build_ext -i), and
 found out that I could not import it:

yes, you should be able to build it in-place (even if usually run
'python setup.py build' because I need the full package be available
in build/platform ) even from the unpacked tarball or from svn
trunk.

  matplotlib/rcsetup.py:117: UserWarning: rcParams key numerix is
 obsolete and has no effect;
  please delete it from your matplotlibrc file
  warnings.warn('rcParams key numerix is obsolete and has no effect;\n'
 Traceback (most recent call last):
  File stdin, line 1, in module
  File pylab.py, line 1, in module
    from matplotlib.pylab import *
  File matplotlib/pylab.py, line 206, in module
    from matplotlib import mpl  # pulls in most modules
  File matplotlib/mpl.py, line 2, in module
    from matplotlib import axis
  File matplotlib/axis.py, line 10, in module
    import matplotlib.font_manager as font_manager
  File matplotlib/font_manager.py, line 52, in module
    from matplotlib import ft2font
 ImportError: matplotlib/ft2font.so: undefined symbol: py_object_initializer

what version are you using? 0.99.1.1, svn trunk, other?

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Remove matplotlib 0.98 in order to install 0.99 on Ubuntu

2009-09-06 Thread Sandro Tosi
On Sun, Sep 6, 2009 at 11:11, Tsviki Hirshtsviki.hi...@gmail.com wrote:
 Dear list,
 I were trying to install matplotlib 0.99 on my ubuntu interpid, I had
 previously installed and extensively used the great 0.98 version.
 There is not seem to be any .deb file for 0.99 on ubuntu.packages site yet,

yes, we know and we are working on it (I'm holding this back a bit due
to other committements, and because ubuntu is in feature freeze for
the upcoming release).

 so I tried to untar and install the source file.
 The installation went smoothly, and when I print the value of __version__
 from matplotlib within ipython, it says 0.99.
 However, when I try to import axes3d from matplotlib, it shouts at me that
 this module is disable in matplotlib 0.98 (!).
 So the question is, should I uninstall 0.98 before compiling the 0.99 source
 or what?

well, this is hardly a question for this list (I see it more for
ubuntu forums), but yes, either you remove python-matplotlib package
(it's and 'apt-get update' away to reinstall if needed), or you play
with sys.path, PYTHONPATH, and so on. For personal packages, you can
also install them into a directory in ~ (using the --root and --prefix
when setup.py install).

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] loading csv data into arrays

2009-08-12 Thread Sandro Tosi
On Wed, Aug 12, 2009 at 16:56, per freemperfr...@gmail.com wrote:
 hi all,

 i have tab-separated text files that i would like to parse into arrays
 in numpy/scipy. i simply want to be able to read in the data into an

numpy's loadtxt()

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] show figures in a loop

2009-08-02 Thread Sandro Tosi
Hello Janwillem,

On Sun, Aug 2, 2009 at 14:11, Janwillemjwevand...@xs4all.nl wrote:

 I have an application where I would like to use show in a loop but as stated
 in 18.1 of the manual that does not work.
 # WARNING : illustrating how NOT to use show
 for i in range(10):
    # make figure i
    show()

call show() outside teh loop:

for i in list:
make the figure
plt.show()

and that would show all the figure generated up to there.

 So I made a workaround in a custom wxDialog with a wxStaticBitmap and a few

so, you want to embed in a WxWidgets application?

 To me it seems there might be a lot of unnecessary data handling. What is
 the clever solution?

Is the solution above fine for you?

Probably if you explain us better what you want to achieve, we can
help you in a better way.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] I really can't get into hist() barstacked

2009-07-21 Thread Sandro Tosi
Hi all,
I'd like to do a histogram with barstacked style. Well, I'm not able
to make it in any way :(

- what is the format of the the data to pass?
- what's the value of bins? (related to the above question, I suppose)

for example, let's say I want to plot this series

s1 = 2,3,6,3,1
s2 = 1,2,2,4,1
s3 = 4,1,0,3,7

what's the format of data to pass to hist() ? by row? by column?

Thanks a lot in advance,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib+Qt. Problem with plot resizing

2009-07-19 Thread Sandro Tosi
2009/7/19 Alexander Bruy volt...@ua.fm:

 I create a small example, see attachment.

no attachment :)

-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Simple stuff for a general-purpose matplotlib book

2009-07-13 Thread Sandro Tosi
Hi all,
as you might know, I'm writing a book about matplotlib. I'm
approaching the last chapter, the one I would have liked to dedicate
to science.

Editors and I, anyhow, decided it would have been too much off-topic
for the public we are targetting, so we have instead decided to
present a series of real world use cases for matplotlib, situations
where graphing can be useful. Some examples could be:

- plot data from a database
- read a csv and plot its data
- webscraping to plot info on a webpage

give the wide spectrum of category I can cover, I'd like to introduce
some scientific examples, something every reader (and not
specifically a math/phys guy can only) can read, understand and (avove
all) appreciate :) .

I'm thinking for example at line interpolation (generate some points
and find the line/curve that better interpolate them).

But what I'd like is to hear from you what simple example you'd like
to propose to be in this book.

Your collaboration would be really appreciate, because it will let the
book be more user driven :)

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Empty squares at end of data after interpolation with griddata?

2009-07-05 Thread Sandro Tosi
Hello Rick,

On Sun, Jul 5, 2009 at 03:52, Rick Mullerrpmul...@gmail.com wrote:
 Having one last problem with matplotlib. I have some data that I'm
 interpolating with griddata, and then plotting with contourf. For reasons
 that escape me, the upper right and the lower left squares are not being
 plotted. I'm printing out a 10x10 version of this to exaggerate the effect:

 http://files.getdropbox.com/u/533499/griddata-example-text.png

this link returns a 404. Please attach the image to this email, along
with a minimal program to replicate the problem (if possible).

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Zooming plot and transforms...

2009-07-01 Thread Sandro Tosi
On Tue, Jun 30, 2009 at 14:12, Fabrice Silvasi...@lma.cnrs-mrs.fr wrote:
 Le lundi 29 juin 2009 à 16:11 -0400, Jae-Joon Lee a écrit :
 In the svn version of matplotlib, there are some helper classes to
 ease this job a bit.
 Thanks for your pointer. Sadly the mpl.toolkits.axes_grid is not shipped
 by debian package, and downloading it requires other stuff. So I adapted

I'm the debian maintainer for matplotlib: if you need something
missing in Debian, get in touch with us, for example reporting a bug
against matplotlib requesting this toolkit.

I didn't check further, but probably it was not release because of
this phrase: In the svn version of matplotlib.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ImportError: No module named mplot3d

2009-07-01 Thread Sandro Tosi
On Wed, Jul 1, 2009 at 16:55, David Paulsendavid.paul...@duke.edu wrote:
 from mpl_toolkits.mplot3d import Axes3D
 ImportError: No module named mplot3d

 I am using the enthought package with matplotlib version 0.98.5.2

 Any help on how to recover mplot 3d would be appreciated.

mplot3d still lives only under SVN and was not released yet (note that
there is a new version of matplotlib, 0.98.5.3).

So either you take the version from SVN (there's a guide on
matplotlib.sf.net) or wait for the next release :)

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Dynamic plotting?

2009-06-29 Thread Sandro Tosi
Hello guillaume,

On Mon, Jun 29, 2009 at 10:53, guillaume ranquetgranq...@wyplay.com wrote:
 I've been asked to transform my app to something more dynamic
 it currently reads an xml file, it has now to read a stream of xml from
 a socket (I can handle this part :D) and plot each point as they are
 coming from the network.

 I'll end up having tons of points over multiple axes; I guess doing
 sonething like fig.plot(concat(old-data,new-point)) would be rather
 inefficient and I wonder if someone ever made something like this using
 matplotlib?

You can refer to animation examples [1] for code that does what you want.

[1] http://matplotlib.sourceforge.net/examples/animation/index.html

at the very end, you update the line data with set_ydata() ,
set_xdata() or set_data() and then call a draw() on the figure.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] install error, libz, ld, lz

2009-06-26 Thread Sandro Tosi
Hello Jack,

On Wed, Jun 24, 2009 at 22:07, Jack Yujackchungchie...@googlemail.com wrote:
 Hi everyone,

 I am trying to install the latest version of matplotlib from svn.  However,
 after cd-ing into the matplotlib directory, and running python setup.py
 install --prefix=${path}, I get the following error:

 /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
 /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
 /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
 /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
 /usr/bin/ld: cannot find -lz
 collect2: ld returned 1 exit status
 error: command 'c++' failed with exit status 1

 I don't really understand what I need to do from this error message.  Does
 it mean that I have to install 'zlib'?   I am using python 2.4.3, and numpy
 1.2.1.

you need to install the development package (in the common sense, for
your pacakge manager) to be able to compile code that dinamically
links to libz. For example on Debian with libz-dev (provided by
zlib1g-dev).

Install a similar package for your distrivution and try to recompile matplotlib.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Running matplotlib job with cron

2009-06-25 Thread Sandro Tosi
Hello Paul,

On Thu, Jun 25, 2009 at 19:13, Paul Simonpsi...@sonic.net wrote:
 I've written my first python script with matplotlib, which works fine at the
 command line but not with cron.  It's quite puzzling to me, and probably
 involves some path declaration that I don't know about.

I may have read the mail fast, but I can't see any notice about if the
image outputs are different (other than the textual outputs).

 matplotlib version 0.91.2

You might also want to update: matplotlib latest release is 0.98.5.3

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplot Numpy possible bug !

2009-06-23 Thread Sandro Tosi
On Mon, Jun 22, 2009 at 13:33,
jmariettejerome.marie...@toulouse.inra.fr wrote:

 Hi everybody,
 I have some probleme with Matplot/numpy !
 I'm using matplot v0.91.2 and I'm trying to get the hist function working !!

a rather old version of matplotlib (that's the name of the project):
we are at 0.98.5.3; try to upgrade and see if the situation improves.
Also, you don't specify the Numpy version (even if I think it's not
relevant here).

 I'm using the sample code of matplot:

with this same code and 0.98.5.3 I got the image attached

 With the same matplot lib but a different version of numpy I get 2 different
 number of bins !!! How is that possible ???
 using the 1.0.4 version of numpy, I get len(n) = 50 and len(bins) = 50 ...
 what sounds pretty right to me !! but using the version 1.2.1 (the last one
 I guess) I got len(n) = 50 and len(bins) = 51 What looks weird, doesn't it
 ???

 do you guys have an explanation ??
 Anybody faced the same problem ?

try to update matplotlib.

Writing note: your usage of several '?' and '!' could lead to upset
people, me for example. one char is enough to express the concept, no
need to repeat since it means you're screaming and order us to
reply, which is never the case on OSS projects users mailinglist.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
attachment: image.png--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Adding grid to animation with blit

2009-06-22 Thread Sandro Tosi
Hi Jae-Joon

On Mon, Jun 22, 2009 at 21:14, Jae-Joon Leelee.j.j...@gmail.com wrote:
 Without actual code, it is difficult to figure out what the real problem is.

sorry I didn't attach a complete example but I would have to strip down a lot :)

 Anyhow, did you check the below animation example?

 http://matplotlib.sourceforge.net/examples/animation/animation_blit_gtk.html

yes, but I didn't have the illumination; until now :)

 In the example, the grid is static (i.e., not animated). If what you

that's perfect, I do not want it to be anymated.

 want is to have the grid animated, then an explicit draw_artist call
 is required (note that grid is drawn by axis).

yeah, I want it to be only on Y (only horizonatal lines).

The solution is:

self.ax = self.fig.add_subplot(111)
...
self.ax.grid(True)
self.canvas.draw()  # -- this was missing

self.bg = self.canvas.copy_from_bbox(self.ax.bbox)

adding an explicit draw() call let the grid() be drawn and then the
result is what's expected.

Thanks a lot!

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Adding grid to animation with blit

2009-06-21 Thread Sandro Tosi
Hello,
I'm using blit to animate my plot, and I'd like to add a grid on it
but I failed at it.

What I do is:

1. prepare Figure, Axes, etc without plotting anything
2. save teh background with
 self.bg = self.canvas.copy_from_bbox(self.ax.bbox)

(on graph update)

3. restore background with
 self.canvas.restore_region(self.bg)
4. line.set_ydata(...)
5. self.ax.draw_artist(self.line)
6. self.canvas.blit(self.ax.bbox)

Now, I tried to place a self.ax.grid(True) in almost every possible
position, but never a grid came out :(

What is the right approach to solve it? Thanks in advance

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] trying to plot polar data

2009-06-16 Thread Sandro Tosi
Hi Mathew,

On Tue, Jun 16, 2009 at 21:20, Yeates, Mathew
Cmathew.c.yea...@jpl.nasa.gov wrote:
 Hi

 I am running the following snippet

 ax = axes(polar=True)

 polar(angles,mag,'bo')

please include a full, working example: with this so few information
we can help a little.

 and I get the attached plot

no attached image.

 How do make the dashed lines  continue inward? How do choose the spacing?
 How do remove the ugly text?

could at least rgrids() thetagrids() help you in part of your questions?

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] change a matplotlib.lines.Line2D and update the plot

2009-06-15 Thread Sandro Tosi
On Mon, Jun 15, 2009 at 16:36, TPparatribulati...@free.fr wrote:
 Hi everybody,

 I want to modify a matplotlib.lines.Line2D and update the plot.
 I have used Line2D._y member to modify the line. It works. But by doing
 canvas.draw() (see example below), the line is not updated on the plot. To
 update it, I have to do autoscale_view(). But I do not want the x and y
 ranges of the plot to be changed.

I think you want the 'line.set_ydata' method, where you pass the new Y
data for your plot (there are also set_xdata and set_data to set,
respectively, the X data and the whole set of X/Y); then call a draw
on the canvas.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [Matplotlib-announce] Fwd: Matplotlib ticklabels error

2009-06-10 Thread Sandro Tosi
Hi Jothy,
first of all, please do not use -announce mailing list, that is for...
announcement. There is matplotlib-users for users support request like
this one (move the discussion there).

On Wed, Jun 10, 2009 at 11:08, KS Jothyjothyb...@gmail.com wrote:
 Hi,

 I am getting a strange error while platting a graph in the matplotlib widget
 embedded in a PyQt form.

 Initially the axis labels range from 0.0 to 1.0, then after plotting these
 labels fail to disappear, it appears along with the new ticklabels.

 Please see the  attached screenshot

could you please post a short example (ideally the smallest part able)
to reproduce the problem?

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] one data set, two y axis scales

2009-06-04 Thread Sandro Tosi
Hi,

On Thu, Jun 4, 2009 at 06:56, musik xi.xiaoxi...@gmail.com wrote:
 I want to make a plot with both y axes labeled. The one on the left (y1)
 will be in Fahrenheit,  while the one on the right (y2) in Celsius. Is there
 a way to do this?

what you're looking for is [1]

[1] 
http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=twinx#matplotlib.pyplot.twinx

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Setting axis range so it is not rescaled

2009-06-04 Thread Sandro Tosi
Hi,

On Thu, Jun 4, 2009 at 23:26, citronade ricit...@mac.com wrote:

 I am trying to set the x and y axis range on a log-log plot. The ranges I
 give are automatically adjusted to the nearest power of 10, but I would like
 to have the minimum and maximum axis values not be powers of 10. Is there a
 way to set the axis range so that it is not automatically rescaled?

you can explicitly set the X and Y limits, actually overriding the
autoscale selection (to disable autoscale completely, exec
ax.set_autoscale_on(False) ).

depending on your code, you can use xlim([xmin, xmax]), ylim([ymin,
ymax]) or axis([xmin, xmax, ymin, ymax]).

Or directly from the Axes instances: set_xlim(), set_ylim().

You can check for the complete references of these functions on
matplotlib.sf.net

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Labeling X-axis with time data

2009-06-02 Thread Sandro Tosi
hi,

On Mon, Jun 1, 2009 at 20:08, pgb205 paulbaranovs...@optonline.net wrote:

 et say i have two arrays
 time_array=[00:00:00,00:00:10...17:59:50,18:00:00]
 and
 data_array=[1,12..34,2]
 both of them with the same number of elements.
 I want to graph data_array on y axis vs time_array on x_axis.
 However, I'm unable to do this using matplotlib because it complains
 time_array is not in numeric form.
 I guess I should do plot=(data_array) and somehow mark the x axis with
 time_array data at periodic intervals. Any suggestion on how to mark x-axis
 with times?

Plotting data against time needs this:

- x data values has to be datetime objects (so you have to convert to that)
- you have to use plot_data() instead of plot()
- adjust X axes formatter and locato with date formatter and locator

hope this reference will guide you trhu mpl documentation to have a
working program; in the gallery in the website you can also find an
example for date plotting.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Labeling X-axis with time data

2009-06-02 Thread Sandro Tosi
Better keep the list in the loop ;)

On Tue, Jun 2, 2009 at 21:20, C M cmpyt...@gmail.com wrote:
 On Tue, Jun 2, 2009 at 1:56 PM, Sandro Tosi mo...@debian.org wrote:
 - x data values has to be datetime objects (so you have to convert to that)
 - you have to use plot_data() instead of plot()

 OP, note that is a typo for plot_date(), not plot_data().

 For converting dates to numbers, also there is in matplotlib.dates
 the date2num function.

-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Howto get horiz/vert grid

2009-05-29 Thread Sandro Tosi
On Fri, May 29, 2009 at 19:09, Neal Becker ndbeck...@gmail.com wrote:

 from pylab import semilogy, show, grid
 grid()
 semilogy (result[0])

 This gave me just a vertical grid.  What do I do to get both horiz and vert
 grids?

(without looking at a screenshot or to the dataset is hard to tell
but) is it possible that you have Y values contained in a single
logarithmic inteval (or even closer)? if so, there is no line on Y to
draw and only vertival lines (relative to X values) are displayed.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib.lines.Line2D object at 0x283d310 - strange error

2009-05-27 Thread Sandro Tosi
Hi,

On Wed, May 27, 2009 at 13:29, ninjasmith henrylindsaysm...@gmail.com wrote:
 I'm a bit new to matplotlib and python.  I'm running ubuntu 64bit.  whenever
 I try and do anything with matplotlib I get an error similar to above.  it
 still works, i.e. when I run the show() command the plot will appear but all
 matplotplib commands return an error similar to above. for example

 In [15]: plot(a)
 Out[15]: [matplotlib.lines.Line2D object at 0x28487d0]

 In [16]: figure(2)
 Out[16]: matplotlib.figure.Figure object at 0x2ddc150

those are not error: what that line say is that you created an
instance of matplotlib.figure.Figure and that instance is located at
0x2ddc150 (it's a memory location).

if you do something like

p = plot(a)

you'll see this messages go away, since you assign the instance
reference to the variable p

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Adapt animation_blit_qt4.py to a pure OO implementation (QT4 timerEvent)

2009-05-27 Thread Sandro Tosi
Hi all,
I'd like to adapt 'animation_blit_qt4.py' to a pure OO approach,
removing pylab from the code and move to something near to
'embedding_in_qt4.py'.

I tried a bit but failed miserably :(

What I'd like to achieve is use something like in
'embedding_in_qt4.py' but that can be updated using the timerEvent /
startTime paradigm (something similar to gobject.add_idle(func) but
this time for Qt4).

Can someone please give me a help on this?

Thanks a lot in advance,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Adapt animation_blit_qt4.py to a pure OO implementation (QT4 timerEvent)

2009-05-27 Thread Sandro Tosi
Hi Darren,
thanks for replying

On Wed, May 27, 2009 at 21:01, Darren Dale dsdal...@gmail.com wrote:
 On Wed, May 27, 2009 at 9:11 AM, Sandro Tosi mo...@debian.org wrote:

 Hi all,
 I'd like to adapt 'animation_blit_qt4.py' to a pure OO approach,
 removing pylab from the code and move to something near to
 'embedding_in_qt4.py'.

 I tried a bit but failed miserably :(

 What I'd like to achieve is use something like in
 'embedding_in_qt4.py' but that can be updated using the timerEvent /
 startTime paradigm (something similar to gobject.add_idle(func) but
 this time for Qt4).

 Can someone please give me a help on this?

 Can you be more specific? Maybe post what you have along with a description
 of how it is failing?

Eheh, sorry for being so generic: I wrote that email from work, while
the code I've worked on was at home ;)

So, the situation is this:

- animation_blit_qt4.py has a nice way to update the graph online,
using the timerEvent/startTimer
- animation_blit_qt4.py contains pylab staff (I want to avoid using)
- animation_blit_qt4.py uses the backend Qt4Agg not the backend object
- embedding_in_qt4.py uses an OO approach at embedding mpl in a qt4
widget/application.

The ultimate result I want to achieve is to embed mpl in a qt4
application but update the graph in realtime.

So I started modifying animation_blit_qt4.py to make it more OO :)

The attached script animation_blit_qt4_morph.py only replaced the
pylab parts with a mix of OO style and pyplot, and the timerEvent just
print the receive event without updating the graph.

As you can see, not much of what I need :(

What I'd like to achive is something similar to
embedding_in_qt4_morph.py but where the graph is updated
automatically like in an animation.

Your help will be appreciated a lot :)

Thanks,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
# For detailed comments on animation and the techniqes used here, see
# the wiki entry http://www.scipy.org/Cookbook/Matplotlib/Animations

import os, sys
import matplotlib
matplotlib.use('Qt4Agg') # qt4 example
# matplotlib Figure object
from matplotlib.figure import Figure
import matplotlib.backends.backend_qt4agg as backend

from PyQt4 import QtCore, QtGui

ITERS = 1000

#import pylab as p
import matplotlib.pyplot as plt
import numpy as npy
import time

class BlitQT(QtCore.QObject):#, backend.FigureCanvas):
def __init__(self):
self.fig = Figure()
self.ax = self.fig.add_subplot(111)
self.canvas = self.ax.figure.canvas
self.ax.grid()

# By making this a child of the canvas we make sure that it is
# destroyed first and avoids a possible exception when the user clicks
# on the window's close box.
QtCore.QObject.__init__(self, self.canvas)

self.cnt = 0

# create the initial line
self.x = npy.arange(0,2*npy.pi,0.01)
self.line, = self.ax.plot(self.x, npy.sin(self.x), animated=True, lw=2)

#self.background = None
#self.old_size = 0, 0
plt.draw()
#backend.show()


def timerEvent(self, evt):
# See if the size has changed since last time round.
#current_size = self.ax.bbox.width, self.ax.bbox.height
print evt

#if self.old_size != current_size:
#self.old_size = current_size
#self.background = self.canvas.copy_from_bbox(self.ax.bbox)

# restore the clean slate background
#self.canvas.restore_region(self.background)
# update the data
self.line.set_ydata(npy.sin(self.x+self.cnt/10.0))
plt.draw()
# just draw the animated artist
#self.ax.draw_artist(self.line)
# just redraw the axes rectangle
#self.canvas.blit(self.ax.bbox)

if self.cnt==ITERS:
# print the timing info and quit
print 'FPS:' , ITERS/(time.time()-self.tstart)
sys.exit()

else:
self.cnt += 1

#p.subplots_adjust(left=0.3, bottom=0.3) # check for flipy bugs
#p.grid() # to ensure proper background restore

app = BlitQT()
# for profiling
app.tstart = time.time()
app.startTimer(100)
backend.show()
#!/usr/bin/env python

# for command-line arguments
import sys
# Python Qt4 bindings
from PyQt4 import QtGui

# standard Matplotlib imports
import numpy as np
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure


class Qt4MplCanvas(FigureCanvas):
Ultimately, this is a QWidget (as well as a FigureCanvasAgg, etc.).
def __init__(self):
self.fig = Figure()
self.axes = self.fig.add_subplot(111)
# We want the axes cleared every time plot() is called
self.axes.hold(False)

self.x = np.arange(0.0, 3.0, 0.01)
self.y = np.cos(2*np.pi*self.x)
self.axes.plot(self.x, self.y)

FigureCanvas.__init__(self, self.fig

Re: [Matplotlib-users] multiple plots in 1 figure

2009-05-19 Thread Sandro Tosi
On Tue, May 19, 2009 at 12:54,  sandeep.pra...@tcs.com wrote:
 Could you help me with plotting the columns of a matrix vs it's index in 1
 figure. S if i have an m *n matrix i have to have n plots in 1 figure.

simply issue multiple times plot() with the give information, then
call pyplot.show(); something like

  import matplotlib.pyplot as plt

  for j in range(columns of matrix):
  plt.plot(here put the X, here put the Y)

  plt.show()

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] Error building from source - Ubuntu

2009-05-18 Thread Sandro Tosi
Do not reply to me only, but always leave the list in CC.

On Mon, May 18, 2009 at 18:41, M Uhlenhuth uhlenhu...@hotmail.com wrote:
 Thanks for your response!

 Yes, have installed:
 python2.5: version 2.5.4-1ubuntu4
 python-dev: version 2.6.2-0ubuntu1
 python-numpy: version 1:1.2.1-1ubuntu1
 libpng12-0: version 1.2.27-2ubuntu2
 libfreetype6: version 2.3.9-4ubuntu-0.1
 libfreetype6-dev: version 2.3.9-4ubuntu-0.1

 Is the issue that I'm using python-dev version 2.6 for python version 2.5?
 If so... I can't figure out how to add python-dev version 2.5... in Synaptic
 Package Manager the only available python-dev package is 2.6 - I can't
 Force Version to get 2.5 and I'm not sure whether I would mess anything up
 elsewhere on my system by substituting 2.5 for 2.6.

Sorry, I'm not a ubuntu user, so I can't exactly tell how to do it. Of
course the devel package version mismatch the interpreter one, and
that's a problem for sure.

if you don't have a python2.5-dev or a python-all-dev IO think you
can't find an easy solution; since numpy does not yet support py2.6,
building mpl with 2.6 is still not a solution.

-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Total noob question. How to start Matplotlib

2009-05-12 Thread Sandro Tosi
Hello Homer (even if I would have rather called you with your proper name)

On Tue, May 12, 2009 at 02:30, (_8*(l)Homer letourneau@gmail.com wrote:
 Like the title of the post says, this is a totally noobie question.  I have
 an older system running Kubuntu 7.04 with Matplotlib 0.90.0 and for the life
 of me, I can't figure out how to start the program.

It seems you missed a little bit: matplotlib is not a program :)

Matplotlib is a library you can use while programming in python to
generate graphs.

Let me give you a very simple example (I'll be using ipython, but take
the code and put it into the python interpreter or in a script and it
will work the same):

$ ipython
Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47)
Type copyright, credits or license for more information.

IPython 0.9.1 -- An enhanced Interactive Python.
? - Introduction and overview of IPython's features.
%quickref - Quick reference.
help  - Python's own help system.
object?   - Details about 'object'. ?object also works, ?? prints more.

In [1]: import matplotlib.pyplot as plt

In [2]: import numpy as np

In [3]: x = np.arange(0,2*np.pi,.01)

In [4]: y = np.sin(x**2)*np.exp(-x)

In [5]: plt.plot(x, y)
Out[5]: [matplotlib.lines.Line2D object at 0x1ab5810]

In [6]: plt.show()


I hope you'll find it interesting, and explore more about matplotlib.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Autoscale embedding in gtk + dynamical update of plot + Y log scale

2009-05-12 Thread Sandro Tosi
Hi All,
I'd like to renew this request below.

I've worked-around this problem setting xlim/ylim (as min/max of the
relative axis) right before redraw the figure, but I'd like to know
for a more elegant solution.

Thanks in advance,
Sandro

On Sun, May 10, 2009 at 23:31, Sandro Tosi mo...@debian.org wrote:
 Hi All,
 I'm facing a weird problem while embedding in a gtk window made with
 glade (dunno if this might be involved in the problem, but worth
 noticing) + dynamical update of the plot.

 What I'm doing is:

 fig = Figure()
 ax = fig.add_subplot(111)
 line, = ax.plot([], [])

 then using that reference to update the plot when user click on a button:

 def update_graph(params):
    line_ref.set_data(np.array([L1, L2]))
    ax.set_yscale('log')
    fig_ref.canvas.draw()

 Sadly, the graph embedded remains unchanged, if not for the Y labels 
 ticks that changes because of the log scale.

 The data is there, becase if I explicitly set the x/ylim then the data
 are shown, but i'd like mpl to autoscale.

 I've used several tentatives to make it works:

 - ax.set_autoscale_on(True)
 - ax.autoscale_view()

 but none of them worked.

 Do you know if there's something I can do to make that graph autoscale
 at set_data time? can I force it somehow? if I can't do it handy, is
 there a workaround to obtain the same effect?

 Thanks in advance,
 --
 Sandro Tosi (aka morph, morpheus, matrixhasu)
 My website: http://matrixhasu.altervista.org/
 Me at Debian: http://wiki.debian.org/SandroTosi




-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Autoscale embedding in gtk + dynamical update of plot + Y log scale

2009-05-10 Thread Sandro Tosi
Hi All,
I'm facing a weird problem while embedding in a gtk window made with
glade (dunno if this might be involved in the problem, but worth
noticing) + dynamical update of the plot.

What I'm doing is:

fig = Figure()
ax = fig.add_subplot(111)
line, = ax.plot([], [])

then using that reference to update the plot when user click on a button:

def update_graph(params):
line_ref.set_data(np.array([L1, L2]))
ax.set_yscale('log')
fig_ref.canvas.draw()

Sadly, the graph embedded remains unchanged, if not for the Y labels 
ticks that changes because of the log scale.

The data is there, becase if I explicitly set the x/ylim then the data
are shown, but i'd like mpl to autoscale.

I've used several tentatives to make it works:

- ax.set_autoscale_on(True)
- ax.autoscale_view()

but none of them worked.

Do you know if there's something I can do to make that graph autoscale
at set_data time? can I force it somehow? if I can't do it handy, is
there a workaround to obtain the same effect?

Thanks in advance,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Continuously varying line colors?

2009-05-04 Thread Sandro Tosi
Hi Erik,

On Mon, May 4, 2009 at 09:22, Erik Tollerud erik.tolle...@gmail.com wrote:
 I'm hoping to generate a line plot where the color of each pixel on
 the plot is given by linearly interpolating the colormap from each
 point specified in the line, instead of having the whole line be a
 solid color.  I can mock this up by doing a scatter plot where the
 points are much closer together than the screen resolution, but that
 seems inelegant, and sometimes produces weird output.  So is there a
 way to do effectively the same thing with a line plot or somehow
 specify this behavior in scatter?

maybe this[1] could be of help?

[1] http://www.scipy.org/Cookbook/Matplotlib/MulticoloredLine

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Embed in GTK + dynamic plot

2009-05-04 Thread Sandro Tosi
Hi John,

On Sun, May 3, 2009 at 00:21, John Hunter jdh2...@gmail.com wrote:
 On Sat, May 2, 2009 at 9:42 AM, Sandro Tosi mo...@debian.org wrote:

 Hi all!
 I'd like to embed a mpl graph into a GTK application (and for that
 embedding_in_gtk*.py examples are fine) but I would also like to
 dynamically update the graph with time.



 Consider like if I want to plot some dynamic system information, like
 cpu usage, memory occupation, or so. Than I want to gather those info
 at 1 sec interval, and dynamically update the graph adding the new
 values.

 How can I do it? I'm stuck with the update data as they come part
 (please note I need for GTK embedded mpl code).

 The idioms in the examples/animations dir should be directly portable
 to an embedded gtk app, eg  simple_anim_gtk.py,
 dynamic_image_gtkagg.py, etc.   You will need to either use an idle
 handle, a timeout handler, or a special event in the gtk event
 handling framework to trigger an update to the data and draw.  You can
 extend the gobject signals to handle custom events (eg data arrives)
 if you want to go this route, but since you are trying to illustrate
 mpl more than gtk (I assume) you may want to go the easy route and use

you assume right :)

 the timeout or idle handler and just check and see if new data has
 arrived and then update as necessary.

yeah, I solved with gobject.idle_add

 PS: if there's someone that knows how to gather cpu percentage usage
 on a linux sys, please tell me :) It seems not that easy to find it
 out from google ;)

 http://tinyurl.com/d7lkga

 Sorry :-) Couldn't resist

ehhe :) but you're right, I've expressed the question wrongly: I was
searching some python module / binding :)

  (less obnoxious answer
 http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html)

At the end I used subprocess module to call sar

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Embed in GTK + dynamic plot

2009-05-02 Thread Sandro Tosi
Hi all!
I'd like to embed a mpl graph into a GTK application (and for that
embedding_in_gtk*.py examples are fine) but I would also like to
dynamically update the graph with time.

Consider like if I want to plot some dynamic system information, like
cpu usage, memory occupation, or so. Than I want to gather those info
at 1 sec interval, and dynamically update the graph adding the new
values.

How can I do it? I'm stuck with the update data as they come part
(please note I need for GTK embedded mpl code).

Thanks in advance,
Sandro

PS: if there's someone that knows how to gather cpu percentage usage
on a linux sys, please tell me :) It seems not that easy to find it
out from google ;)

-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Another Gnuplot style question

2009-04-29 Thread Sandro Tosi
On Wed, Apr 29, 2009 at 08:20, Joseph Smidt josephsm...@gmail.com wrote:
 1. Both graphs overlayed on the same plot.
 2. Semilogy. (log y values),
 3. Only ploy for x in the range 2-3.
 4. Legend for the two graphs on same plot.

a simple example:

In [2]: import numpy as np

In [3]: import matplotlib.pyplot as plt

In [16]: data = np.random.rand(10,3)

In [17]: data
Out[17]:
array([[ 0.00669083,  0.4421283 ,  0.46697081],
   [ 0.18093819,  0.11669917,  0.70887601],
   [ 0.11659791,  0.96514955,  0.07389404],
   [ 0.95616662,  0.30350482,  0.10036185],
   [ 0.14197553,  0.10560376,  0.2964961 ],
   [ 0.74705585,  0.21806946,  0.37095176],
   [ 0.1551145 ,  0.76093425,  0.878701  ],
   [ 0.44315466,  0.3625146 ,  0.06750168],
   [ 0.96109656,  0.88401174,  0.59215722],
   [ 0.46190334,  0.39079641,  0.5958516 ]])

In [28]: plt.semilogy(data[:,0], data[:,1], label='first dataset')
Out[28]: [matplotlib.lines.Line2D object at 0xa7698ac]

In [29]: plt.semilogy(data[:,0], data[:,2], label='second dataset')
Out[29]: [matplotlib.lines.Line2D object at 0xa8049ac]

In [30]: plt.xlim([0.2, 0.8]) # limit x to 0.2..0.8
Out[30]: (0.20001, 0.80004)

In [31]: plt.legend()
Out[31]: matplotlib.legend.Legend object at 0xa80d04c

In [32]: plt.show()

 I have spent time looking through the documentation but I can't find
 anyway to do this is any straightforward way.  plotfile() looks
 promising, but I can't seem to make it do the above.  Thanks in
 advance.

to load data from file you can try

matplotlib.mlab.csv2rec

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] installation issue

2009-04-28 Thread Sandro Tosi
On Tue, Apr 28, 2009 at 14:46, Bala subramanian
bala.biophys...@gmail.com wrote:
 [r...@ramana matplotlib-0.98.5.2]# python setup.py build
 In file included from src/ft2font.cpp:1:
 src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared
 src/ft2font.h:31: error: ‘FT_Int’ has not been declared
 src/ft2font.h:31: error: ‘FT_Int’ has not been declared

you're probably missing freetype2 headers. Please install all the
needed development packages required to  build mpl. Check the
matplotlib documentation about building from source or the packages
used in building the Debian packages (for example).

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] installation issue

2009-04-28 Thread Sandro Tosi
On Tue, Apr 28, 2009 at 15:26, Bala subramanian
bala.biophys...@gmail.com wrote:
 Hi,
 I think freetype is already installed in Fedora10. When i search yum as

I said freetype2 *headers*, those files needed for development, not
runtime support. Install the according packages for your distribution.

-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Ticks

2009-04-27 Thread Sandro Tosi
On Mon, Apr 27, 2009 at 12:15, D2Hitman j.m.gir...@warwick.ac.uk wrote:
 I am looking to change the size/style of the tick markers. Not the labels
 associated with each tick, the dashes. How do i go about this?

There are several options in matplotlib config file (on Debian it's
/etc/matplotlibrc, but you can have also a user specific one) you can
use to configure the ticks style, for example:

#xtick.major.size : 4  # major tick size in points
#xtick.minor.size : 2  # minor tick size in points
#xtick.major.pad  : 4  # distance to major tick label in points
#xtick.minor.pad  : 4  # distance to the minor tick label in points
#xtick.color  : k  # color of the tick labels
#xtick.labelsize  : medium # fontsize of the tick labels
#xtick.direction  : in # direction: in or out

You can access them also with rcParam dictionary provided by matplotlib module.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] warining with ipython

2009-04-27 Thread Sandro Tosi
Hi Bala,

On Mon, Apr 27, 2009 at 13:40, Bala subramanian
bala.biophys...@gmail.com wrote:
 Friends,
 I started pylab with ipython -pylab

I think it would help if you can also specify what version of ipython
and matplotlib you're using, as long as what backend is configured to
be used.

 After some time, i did

 In [21]: import matplotlib
 Warning: Timeout for mainloop thread exceeded
 switching to nonthreaded mode (until mainloop wakes up again)

 Why this warning comes ?

I think this is something related to the graphical backend used, or
maybe a mixture from the default one and the one set by hand in this
session.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] line properties

2009-04-27 Thread Sandro Tosi
Hi Bala,

On Mon, Apr 27, 2009 at 15:25, Bala subramanian
bala.biophys...@gmail.com wrote:
 Friends,
 I am going through John Hunter's The Matplotlib User’s Guide. In the user
 guide, one of the three ways of changing the line properties is given as
 follows

 Using set to control line properties
 l i n e s = p l o t ( t , s1 )
 s e t ( l i n e s , ma r k e r s i z e =15 , marker=’d’ , \
 . . . ma r k e r f a c e c o l o r =’g’ , ma r k e r e d g e c o l o r =’r’
 )

 But when i try the same i get the following error, Kindly someone help me to
 understand what i am doing wrong.

I think there's some sort of typo there, since it's setp

 In [31]: new=plot(t,s)

 In [32]: set(new, markersize=15)
 ---
 TypeError Traceback (most recent call last)

 /home/cbala/ipython console in module()

 TypeError: set() does not take keyword arguments

In [6]: new = plt.plot(x,y)

In [7]: plt.setp(new, linewidth=10)
Out[7]: [None]

works as expected.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] line properties

2009-04-27 Thread Sandro Tosi
On Mon, Apr 27, 2009 at 18:11, Jouni K. Seppänen j...@iki.fi wrote:
 Sandro Tosi mo...@debian.org writes:
 I think there's some sort of typo there, since it's setp

 Yes, it used to be set but then Python added the set data type with the
 same name, so references to the old name could remain in some
 documentation. This seems to be fixed in the current version of the
 tutorial, though:

 http://matplotlib.sourceforge.net/users/pyplot_tutorial.html#id2

ahhh I see.

hence I think that maybe Bala is using an old pdf guide you can easily
find on web, something written for 0.90.* or so.

Bala, if it's so, you should really consider got to
http://matplotlib.sourceforge.net/ and read the doc there (there
should be also a pdf, I suppose).

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] warining with ipython

2009-04-27 Thread Sandro Tosi
On Mon, Apr 27, 2009 at 15:18, Bala subramanian
bala.biophys...@gmail.com wrote:
 Hi,

 Version informations
 Python 2.5.2
 IPython 0.8.4
 matplotlib 0.98.1

this is a rather old version, you might want to try to upgrade to
0.98.5.2 or a near release.

 backend GTKAgg
 Running on Fedora10

could you please provide a simple script (along with configuration
files that applies to your executions) to replicate the issue? I can
speculate there some GUI mixture, but with code in front it's easier
:)

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] two scales in the same plot

2009-04-24 Thread Sandro Tosi
Hi Ondrej,
nice to see you here :)

On Fri, Apr 24, 2009 at 22:02, Ondrej Certik ond...@certik.cz wrote:
 Hi,

 is there a way to have one plot with two functions, one using some
 scale, the other one a different scale and show for example one scale
 on the left, the other scale on the right?

sure, twinx() is what you're looking for; here is a simple example:

import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0., np.e, 0.01)
y1 = np.exp(-x)
y2 = np.log(x)
fig = plt.figure()
ax1 = fig.add_subplot(111)
ax1.plot(x, y1)
ax1.set_ylabel('Y values for exp(-x)')
ax2 = ax1.twinx()
ax2.plot(x, y2, 'r')
ax2.set_xlim([0,np.e])
ax2.set_ylabel('Y values for ln(x)')
ax2.set_xlabel('Same X for both exp(-x) and ln(x)')

The values on X has to be of the same scale, tough, else the graph
would look really weird.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] New user having much trouble with formating dates on x-axis

2009-04-18 Thread Sandro Tosi
On Sat, Apr 18, 2009 at 04:41, Andrew Romero romero...@yahoo.com wrote:
 are those unix timestamps (from 1970-01-01)?

 They were generated in another script using python
 str(time.time())


 In any case, you have to convert those in datetime objects

 Is this done with
 datetime.fromtimestamp(timestamp[, tz])  ?

yeah:

In [1]: import datetime

In [2]: import time

In [3]: t = time.time()

In [4]: datetime.datetime.fromtimestamp(t)
Out[4]: datetime.datetime(2009, 4, 18, 9, 54, 55, 125239)

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] New user having much trouble with formating dates on x-axis

2009-04-17 Thread Sandro Tosi
On Sat, Apr 18, 2009 at 00:22, Andrew Romero romero...@yahoo.com wrote:
 The script plottest.py.txt reads the data file (out.txt) and creates the plot 
 (myfig.png); however,
 I am unable to format the dates ... they always print as floats .. help

are those unix timestamps (from 1970-01-01)?

In any case, you have to convert those in datetime objects, then

dates = list of datetime objects
mpl_dates = [matplotlib.dates.date2num(date) for date in dates]

and at the and use plot_date() instead of plot(), using mpl_dates for X axis.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] change hour format in date plotting

2009-04-05 Thread Sandro Tosi
On Sat, Apr 4, 2009 at 06:37, C M cmpyt...@gmail.com wrote:
 I am pretty happy with the default for how dates ticks
 are updated with zooming the plot with the navigation
 toolbar...until it gets down to the level of hours.

 Hours are by default displayed in a format like:
 23:00:00 UTC.  How can I get it to display it in a
 more common way, such as 11:00 pm, or better,
 11 pm, 3/15?

something like:

# init figures
fig = figure()
ax = fig.add_subplot(111)
# plot the lines
ax.plot_date(...)
# x data (dates) formatter
ax.xaxis.set_major_formatter( DateFormatter('PUT YOUR FORMAT HERE') )

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] help me to understand please

2009-03-28 Thread Sandro Tosi
On Sat, Mar 28, 2009 at 15:45, Bala subramanian
bala.biophys...@gmail.com wrote:
 Friends,
 In the following. I am not able to understand how this plot.show() works. I
 have commented the problem in the following examples.

You have to call plt.show() only when you want to actually show the
figure. That's because you're using python command interpreter.

Try:

plt.plot(x,y,'b-')
plt.ylim( (1.5,4.5) )
plt.show()

If you want to do interactive plotting, I suggest using ipython.

ipython -pylab

already import the pylab module, that provide all the pyplot functions.

I prefer to do something like

$ipython

  import matplotlib.pyplot as plt
  plt.ion() # incase it's not already in interactive mode
  do my printing

This way, it will open the figure window and you'll be able to
decorate the plot in the ipython shell and see the result applied to
the background figure with no need to execute plt.show() or close
the windows between a command and a show().

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Working with arrows

2009-03-25 Thread Sandro Tosi
Hello,
I'm trying to use arrows but I'm a little stuck.

In [1]: import matplotlib

In [2]: matplotlib.__version__
Out[2]: '0.98.5.3'

First, simply

import matplotlib.pyplot as plt
plt.arrow(2,2,4,1)

doesn't show anything, while at least a figure with an arrow in is
expected (or it's by design?)

Secondly, with this simple script:

import matplotlib.pyplot as plt
plt.plot(range(10))
plt.arrow(2,2,4,1, linewidth=5)
plt.arrow(3,3,1,4)

the result is quite ugly :) Where is the arrow pointer (for example)?

I hope I'm missing something, but even in examples like usetex_demo
the arrows are drawn by hand :)

Thanks,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
attachment: mpl_arrowspng.png--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Adapt plot- or font-size to avoid xlabel cutting

2009-03-03 Thread Sandro Tosi
Hi Eric,
thanks for the reply.

On Sat, Feb 28, 2009 at 20:56, Eric Firing efir...@hawaii.edu wrote:
 It is not really a bug; it is an inherent limitation in mpl's default
 automatic Axes positioning.  Axes positions are given in normalized
 coordinates relative to the figure, so if you shrink the height of the
 figure (relative to the default, for which the default positioning
 parameters are designed), there is less physical space available for the
 x-axis ticks, ticklabels, and label--and things can get cut off.  If you are
 adjusting the figsize and/or the font size, then chances are you need to
 adjust these normalized coordinate Axes position parameters as well.  Trial

Oh, ok, now it's clear

 and error is typically needed; it can be facilitated by using the  subplot
 adjuster widget in an interactive window (second to last button on the
 toolbar) to decide what looks good.  Then use the figure.subplot.* entries

Yeah, I used this to find 0.13 to be my number...

 in matplotlibrc, or call plt.subplots_adjust(bottom=0.15) (for example), or
 call it as a method of the figure you have just created.

...that I added this command and it worked.

 For doing the interactive adjustment, you will want to use a smaller figure
 dpi, something to match your screen.  Everything will scale correctly when
 you save the figure at higher dpi.

luckily, even at dpi=300, the image still fits my screen :)

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Plotting None value with dates goes in maximum recursion depth exceeded?

2009-02-11 Thread Sandro Tosi
Hello,
I got a script (attached, even if without the datafile has less
meaning) that parses a log file and plots 3 datasets. With 0.98.5.3 I
got this error

$ ./ddc_graph.py
Traceback (most recent call last):
  File ./ddc_graph.py, line 39, in module
rc_plot = ax.plot_date(DATES, RC, '-')
  File /usr/lib/python2.5/site-packages/matplotlib/axes.py, line
3356, in plot_date
ret = self.plot(x, y, fmt, **kwargs)
  File /usr/lib/python2.5/site-packages/matplotlib/axes.py, line 3288, in plot
for line in self._get_lines(*args, **kwargs):
  File /usr/lib/python2.5/site-packages/matplotlib/axes.py, line
401, in _grab_next_args
for seg in self._plot_3_args(remaining, **kwargs):
  File /usr/lib/python2.5/site-packages/matplotlib/axes.py, line
340, in _plot_3_args
x, y, multicol = self._xy_from_xy(x, y)
  File /usr/lib/python2.5/site-packages/matplotlib/axes.py, line
215, in _xy_from_xy
by = self.axes.yaxis.update_units(y)
  File /usr/lib/python2.5/site-packages/matplotlib/axis.py, line
939, in update_units
converter = munits.registry.get_converter(data)
  File /usr/lib/python2.5/site-packages/matplotlib/units.py, line
137, in get_converter
converter = self.get_converter( thisx )
...
  File /usr/lib/python2.5/site-packages/matplotlib/units.py, line
137, in get_converter
converter = self.get_converter( thisx )
  File /usr/lib/python2.5/site-packages/matplotlib/units.py, line
130, in get_converter
if converter is None and iterable(x):
RuntimeError: maximum recursion depth exceeded

I see the same behavior in .2 but not in 0.98.5. I remembered I've
copied this from an example in mpl doc, but that's all.

Is that a regression or something wrong in the code?

Thanks,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
#!/usr/bin/python

# parse xchat #ddc log file to generate
# RC, NEW and RM graphs
#
# 2008-06-22 - v1.0 - first release, graph NEW anc RC Bugs
# 2008-06-23 - v1.1 - added grid to graph
# 2008-07-23 - v1.2 - added RM queue count
# 2008-11-07 - v1.3 - added data plotting

from __future__ import with_statement
import re, string
from pylab import figure, show, plot
import datetime
from matplotlib.dates import DateFormatter

# regexp to extract interesting lines  data from them
bts_lines = re.compile(BTS has changed the topic to(.*)NEW(,*))
bts_info = re.compile((.*) ..BTS has changed the topic to: .* RC bug count: ([^ ]*)  NEW queue: ([^ ]*)  (?:RM queue: ([^ ]*)  )*htt.*)

# local data structures init
DATES = RC = NEW = RM = []

with open('/home/morph/.xchat2/xchatlogs/debian-#debian-devel-changes.log') as f:
for line in f:
if bts_lines.search(line):
# replaces | with space to avoid complexity in regexp rules
res = bts_info.match(string.replace(line,'|',''))
#DATES = DATES + [datetime.datetime.strptime('2008 '+res.group(1),'%Y %b %d %H:%M:%S')]
DATES = DATES + [datetime.datetime.strptime(res.group(1),'%Y-%m-%d %H:%M:%S')]
RC= RC + [res.group(2)]
NEW= NEW + [res.group(3)]
RM = RM + [res.group(4)]

# init figures
fig = figure()
ax = fig.add_subplot(111)
# plot the lines
rc_plot = ax.plot_date(DATES, RC, '-')
new_plot = ax.plot_date(DATES, NEW, '-')
rm_plot = ax.plot_date(DATES, RM, '-')
# legend
ax.legend((rc_plot,new_plot,rm_plot),('RC bugs','NEW pkgs','RM reqs'))
# x data (dates) formatter
ax.xaxis.set_major_formatter( DateFormatter('%Y-%m-%d') )
ax.grid(True)
fig.autofmt_xdate(bottom=0.12)
# show the figure
show()
--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] release candidate

2009-02-09 Thread Sandro Tosi
Hi John,
thanks for the heads up:)

On Sun, Feb 8, 2009 at 21:46, John Hunter jdh2...@gmail.com wrote:
 We have accumulated a number of bug fixes in our stable release
 branch, so I would like to release the 3rd bugfix release.  Please
 test and report any problems

  
 http://matplotlib.sourceforge.net/release-candidates/matplotlib-0.98.5.3.tar.gz

I just built mpl on Debian, and the easy test works fine:

$ python -c import matplotlib ; print matplotlib.__version__
0.98.5.3

There are some warnings/errors during docs creation, I'll try to debug
them (but I can assure I'll due in few hours/days); if needed I can
provided the (long) build log :)

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] datetutil issues

2009-02-02 Thread Sandro Tosi
On Mon, Feb 2, 2009 at 20:29, C M cmpyt...@gmail.com wrote:
 I'm doing some date plotting and make use of dateutil.  The version
 I have is given as 1.2-mpl and I believe it installed directly with the
 latest matplotlib installation.

 My problem is with dateutil's microsecond precision. An example:

 date = '2009-01-11 03:55:23.255000'
 d = dateutil.parser.parse(date)
 d
 datetime.datetime(2009, 1, 11, 3, 55, 23, 254999)

 Note the microseconds of the datetime object are 254999,
 whereas the original date string given was 255000.  This matters
 to me in that I am matching to a database and would prefer to
 have the two values just match without further manipulation.

 I thought maybe newer versions of dateutil would have had this
 issue worked out.  I see there is a dateutil 1.4.1 available, here:
 http://labix.org/python-dateutil

Yes it's fixed:

$ python
Python 2.5.2 (r252:60911, Jan  4 2009, 21:59:32)
[GCC 4.3.2] on linux2
Type help, copyright, credits or license for more information.
 import dateutil.parser
 dateutil.__version__
'1.4.1'
 date = '2009-01-11 03:55:23.255000'
 d = dateutil.parser.parse(date)
 d
datetime.datetime(2009, 1, 11, 3, 55, 23, 255000)

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] datetutil issues

2009-02-02 Thread Sandro Tosi
On Mon, Feb 2, 2009 at 21:18, C M cmpyt...@gmail.com wrote:
 OK, great.  How do I get 1.4.1?

you say nothing about your operating system, so how can you expect us
to help? I use Debian, and the package it's there, try find it in your
distribution, if not install setuptools (since it needs that module
too, from your error) and then dateutils.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-02-01 Thread Sandro Tosi
Hi Chris,
thanks for your reply, helpful as usual :)

On Fri, Jan 30, 2009 at 18:59, Chris Walker
chr...@chiark.greenend.org.uk wrote:
   Firstly, good luck with the book.

cheers :)

 The sort of book I'd buy would explain how to use the combination of
 matplotlib/ipython/scipy/numpy to analyse data.

Sadly, that would not the book I'll write :( The editor wanted to
target another audience for the book: experienced python developers,
with no knowledge of matplotlib; so an introductionary book, that will
show even how to integrate mpl on GTK/WX application and on the web.

I pushed to have something about science, and a chapter will be about
that, but I need your (all) inputs, because my science days are long
back in the past ;)

 - what are the (basic) things that, when you were beginning to use
 matplotlib, you wanted to see grouped up but couldn't find?
 - what would you like to see in a book about matplotlib?

 Start off by reading data from a file, plotting it and fitting a
 function to that data.

That sounds something that could land in the science chapter.

 Plotting with related scales
 

 Sometimes it is useful to plot related scales on x1 and x2 axes. I've
 come across this several times in different contexts. In its simplest
 form, there is a linear relationship between the axes. In a mechanical test, 
 you might want extension on the x1 axis and strain on the x2 axis (for 
 example).

 Sometimes there is not a linear relationship. For example you might
 want to plot frequency (or photon energy) on x1 and wavelength on x2.

 An even more complex example is a Hall-Petch plot:

 (Yield Stress) = k/sqrt(Grain Size)

 So plotting 1/Sqrt(Grain Size) on the X1 axis gives a linear
 plot, but it would be useful to plot the grain size on the X2 scale.

Err, I think I lost you ;)

What you want is 2 plots on the same figure? so not 2 Ys for the same
X (let's say X is time, and Y1 is stock price variation, and Y2 is the
percentage change), you want X1-Y1 (let's say on the bottom-left) and
X2-Y2 (on the upper-right): did I get you?

 ipython and emacs
 -

 Suppose I want to write a script to analyse some data (perhaps I want
 a record of what I've done, or perhaps I'd like to perform the same
 analysis on several data sets). I'd probably do so in emacs - but it
 is useful to do some experimentation in ipython - tab completion is
 particularly useful. I feel there must be a good way to do my
 experimentation in ipython and save the important bits in emacs - but
 I've not sat down and worked out an efficient way of doing this.

I think the preferred way to do so it using ipython, and for now I
plan only to show it on the book.

 Data aqcuisition and experimental control:
 -

 Writing a simple application to acquire data - ideally from multiple
 sources and plot the data as it is acquired. In my case I wanted to
 combine mechanical with electrical tests. A couple of interesting
 articles by G Varoquaux are listed at
 http://wiki.debian.org/DebianScience/DataAcquisition

 This is perhaps beyond the scope of the book, but it has come up on
 the mailing lists a couple of times. The ideal application would have
 a gui for simple use, but a command line (probably ipython) for more
 more complex use - perhaps performing a series of tests under
 different conditions.

I thought about an example for this already! :) I thought to develop a
sample application for GTK/WX that display some system value (like cpu
usage or so, in this way everyone can run the example) plotting the
information as it comes (for 30 secs, for example).

 Some discussion of plotting non gridded 2d data should also be in
 there.

for example?

 Your suggestions are really appreciated :) And wish me good luck!

 I don't think it is the thrust of your book, but another book I was
 looking for is A cookbook of Numerical simulations of classic
 physics/engineering problems. For use by physicists/engineers who
 don't want to rewrite things from scratch.

As said, even if my degree is in linear algebra, my science days are
gone, so it won't be in the book, if not for that chapter about
science and mpl.

 Good luck.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ImportError: No module named pyplot

2009-01-21 Thread Sandro Tosi
On Wed, Jan 21, 2009 at 04:23, mzs m...@thebrookhavengroup.com wrote:

 Hi,

 I am using Ubuntu Gutsy 7.10 and want to use matplotlib.pyplot but when I
 execute:

 import matplotlib.pyplot as plt

 I get:

 import matplotlib.plot as plt
 Traceback (most recent call last):
  File stdin, line 1, in module
 ImportError: No module named plot

here you wrote plot not pyplot: might this be the problem?

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ImportError: No module named pyplot

2009-01-21 Thread Sandro Tosi
On Wed, Jan 21, 2009 at 15:01, mzs m...@thebrookhavengroup.com wrote:

 Thank you for the information.  I figured out that using pylab works.  I
 would rather use a current version.  I tried to find the version you
 mentioned in a deb package for Ubuntu but it doesn't seem to exist.  Do you
 know why or where can I get it?

Probably there are none for the version of Ubuntu you're using but
there are newer packages in Ubuntu[1].

I'm not a Ubuntu guru, but you seem to be rather old in version, I
suggest, given the short release period, to keep your system
up-to-date to the current version (not 8.10 I think) and there there
are newer binary packages too[2].

[1] https://launchpad.net/ubuntu/+source/matplotlib
[2] http://packages.ubuntu.com/search?keywords=python-matplotlib

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Zip Archive for the gallery plot

2009-01-20 Thread Sandro Tosi
Hello,

On Mon, Jan 19, 2009 at 19:32, Tim Michelsen
timmichel...@gmx-topmail.de wrote:
 Hello,
 are the nice examples from gallery on the matplotlib homepage somewhere
 available as a ZIP-archive?

 I would like to have them as reference during time I am not connected to
 the net.

In case you're using Debian (or a Debian-derived distribution) the
images, along with all the documentations distributed (see it like the
website) is available in the package python-matplotlib-doc (actually
in experimental).

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Matplotlib 0.98.5.2 - Debian packages available (source + amd64)

2009-01-14 Thread Sandro Tosi
Hi all,
due to some requests came lately, I decided to upload the temp
Debian package for 0.98.5.2.

They are available at [1]. If you're using an amd64 architecture, then
you can take all those python-matplotlib*.deb and sudo dpkg -i
deb them, if you're using another architecture, then (needs
devscripts, build-essential installed):

dget -x http://people.debian.org/~morph/matplotlib_0.98.5.2-1.dsc
cd matplotlib-0.98.5.2
debuild -us -uc

At this stage, the command will fails because there are some missing
packages needed to build mpl. They are listed, so take them and
aptitude install package list. You need both unstable and
experimental repository in your /etc/apt/sources.list. Reiterate this
process until the building proceeds.

After a while (30mins ~ 1.5h) you'll have in .. the deb files to
install on your machine.

The building guidelines above are not complete, as it can't be in
this email; in case of problem, reply to the lists, so other can
leverage the replies.

Cheers,
Sandro

[1] http://people.debian.org/~morph/

-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] Matplotlib 0.98.5.2 - Debian packages available (source + amd64)

2009-01-14 Thread Sandro Tosi
On Wed, Jan 14, 2009 at 18:22, John Hunter jdh2...@gmail.com wrote:
 On Wed, Jan 14, 2009 at 10:26 AM, Sandro Tosi mo...@debian.org wrote:
 I was wondering that, for the time being, I could upload to
 experimental: developers, do you have any plan to release .3 soon? If
 not, and upload to our experimental area (that's a sort of unstable,
 but with packages not ready for prime time) could be an easy way for
 our users to have mpl on Debian system. Let me know, the package is
 ready, just needs the upload.

 Well, I've been planning to do it for some time now but have just been
 too busy.  It's high on my list of things to do though!

:) I supposed the situation was something similar. Well, given the
package sit waiting since a long time, and even Ubuntu expressed the
wish to pull a new version from Debian, I think I'll upload to
experimental this night. Once ready, I'll package and upload .3 too.

Thanks for your work!

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Problem with pyplot under Linux Ubuntu Intrepid

2009-01-13 Thread Sandro Tosi
On Tue, Jan 13, 2009 at 13:20, Mauro Cavalcanti mauro...@gmail.com wrote:
 Dear Sandro,

 First of all, I apologize for the delay in replying -- yesterday was
 already late night here and I also had to fight (???) a kernel panic
 in my Linux box the cause of which is not yet clear (I also had it
 under Ubuntu Hardy and now it appeared in Intrepid -- under Hardy, I
 substituted my only RAM chip and the problem disappeared, but now I
 think the problem may be related to overheating -- it is the hottest
 tropical summer here down under!).

 Well, after following the steps you provided for creating the Debian
 package for MPL, and installing all required dependencies, I still
 could not create the package -- the reason is that the program keeps
 complaining about an older version of python-sphinx, even if I
 upgraded to the latest version it using easy_install... Maybe I will
 have to build sphinx from souce too?

Well, honestly I don't know and I don't want to invest too much time
on this: I'll provide the compiled packages (even if still temporary,
waiting for Matplotlib developers to release 0.98.5.3) tomorrow, and
then I'll post the location on the list. They will be for Debian Sid,
so they might not work out of the box and you might need to get
other packages from Debian and install into Ubuntu.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Problem with pyplot under Linux Ubuntu Intrepid

2009-01-12 Thread Sandro Tosi
Hello Mauro,
(thanks John to highlight me:) )

On Mon, Jan 12, 2009 at 17:50, Mauro Cavalcanti mauro...@gmail.com wrote:
 3) I am running MPL 0.98.5.1, installed with Ubuntu itself. I ran sudo
 easy_install matplotlib in an attempt to install version 0.98.5.2, but
 this gave no result (easy_Install tells me that I already have the
 latest version of MPL)

I'm the Debian maint (while working with Ubuntu one) so I suggest to
use the code in our SVN repository to build the package:

get the mpl tarball, v0.98.5.2 should be fine, name it
matplotlib_0.98.5.2.orig.tar.gz
untar it in a dir called matplotlib-0.98.5.2, that will contain the mpl files
cd matplotlib-0.98.5.2
svn co svn://svn.debian.org/svn/python-modules/packages/matplotlib/trunk/debian/
sudo apt-get install build-essential
debuild -us -uc
install the missing build-dependencies returned from above commands
and reiter if needed

It's a little bit tedious (and the build will take a while) but in ..
you should find the .deb to install.

If someone would release .3, we could package it for Debian systems :) :)

 Well, I have googled the error message: ImportError: libffi.so.4:
 cannot open shared object file: No such file or directory and it
 seems that a few other Python applications are crashing with this
 error under Ubuntu Intrepid (but I could not find any solution, just
 error reports).

libffi received a SONAME bump to .5 (infact, now the package is called
libffi5), so there might be something still referring the old library,
that probably went removed during upgrade (Ubuntu QA work.)

 I am not sure if compiling from source would help in this case,
 because the error seems to be related to a missing system (?) library
 and not to MPL or any of the backends.

yes, it would help. because relinking to new lib will fix those broken links.

Let us know any progress.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Problem with pyplot under Linux Ubuntu Intrepid

2009-01-12 Thread Sandro Tosi
On Mon, Jan 12, 2009 at 19:52, Mauro Cavalcanti mauro...@gmail.com wrote:
 I must say I feel truly honoured. I never expected my humble complaint
 would merit the attention of one of the Debian maintainters!

eheh, well, we are not some sort of gods or what: we talk to mortals now :D

 I will follow the directions you provided - as I understood, they will
 result in the creation of a deb package for the latest version of
 Matplotlib? This will be great!

Yes: Ubuntu is a Debian-based distribution, so once you'll have the
deb files (built on your ubuntu box) it enough to

sudo dpkg -i python-matplotlib*.deb

and it will install them

 I will report the results to you (and the Matplotlib-users lists) as
 soon as possible.

Great. The only problem I see is that there are a lot of caveats in
building packages, and you can face some corner case (I couldn't cope
in my uber-fast introduction to deb building :) ).

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] What would you like to see in a book about Matplotlib?

2009-01-05 Thread Sandro Tosi
Hello João,
thanks for replying

On Mon, Jan 5, 2009 at 13:40, João Luís Silva jsi...@fc.up.pt wrote:
 Sandro Tosi wrote:
 - what are the (basic) things that, when you were beginning to use
 matplotlib, you wanted to see grouped up but couldn't find?

 I don't know if you consider it basic or not, but I would have liked
 better documentation of the object oriented interface (matplotlib). The

could you be a little more specific on what you mean here?

 - what would you like to see in a book about matplotlib?

 As above, at least a chapter about the object oriented interface showing
 how to embed matplotlib on a application, and outlining the structure of
 the OO interface.

Well, this is part of the purpose of the book: show how to embed mpl
in applications.

 - what are some those advanced feature that made you yell WOW!! ?

 I haven't really used matplotlib's advanced features. There are some
 that I like, such as automatic legend placement and mathtext support.

mathtext and latex support will be in the advanced features section

 The number of supported backends is impressive just by itself, making
 matplotlib much more useful. There are some little things such as the
 search order for the matplotlibrc file that make it possible to specify
  different settings for a given directory.

There will be a part even on configuration (of course :) ).

 - what are the things you'd like to explore of matplotlib and never
 had time to do?

 I never had the time to try the masked arrays although I think they will
 be useful for me. I should also explore how to create custom color maps.

2 points added to the adv featues list (in part because something was
already there, in a different form).

 Your suggestions are really appreciated :) And wish me good luck!

 I was going to! Good luck, I hope you manage to take this project to
 completion.

Eheh, thanks! I really hope I'll be able to handle even this task :)

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-01-05 Thread Sandro Tosi
Hello Andrew,
thanks for taking the time to reply.

First of all, let me clarify that I received a proposal (and not the
opposite) so some decision were already made about the book format.

On Mon, Jan 5, 2009 at 20:00, Andrew Straw straw...@astraw.com wrote:
 Hi Sandro,

 It's great news that a book may come out on MPL.

 Speaking as an aspiring university professor in neuroscience, I would
 like to see something that could be used as a resource for undergraduate
 students just learning Python and MPL.

The cut of the book is for already experienced Python programmers. For
sure, in the approaching chapter to mpl, I won't go too much into
deep of python programming, and I suppose they'll be easy to read even
for new comers.

 Due to this perspective, I think
 such a book would cover both numpy and MPL. The emphasis could clearly
 by on MPL, but basic numpy idioms and concepts should also be taught.

Mh, the focus the editor would like to see is about introducing mpl +
integrating into apps. The examples I have in mind for the pratical
part of apps integration already cointains some sort of introduction
to gather data and plot them (but I can't go to much on the scientific
side :) ). I will propose a chapter like Matplotlib for the science
and here your suggestion on what you'd like to see there is welcome.

 I
 think an example-driven approach would be very useful -- something like
 an undergraduate laboratory experiment where students measure and plot
 raw values and compute histograms and statistics (e.g. mean and std).
 More advanced sections might perform statistical comparisons of
 different treatments (e.g. using chi squared, KS and/or T tests), do
 linear least squares fitting (with np.linalg.lstsq), and possibly
 non-linear curve fitting using something like scipy.optimize.fmin.

That could be a beginning of that chapter contents: more more more ideas :)

 That's my self-serving $0.02, since you asked! :)

And they are very much welcome!!

 You may also want to speak with John Hunter and Fernando Perez about the
 possibility of collaborating -- they've already done some work towards a
 book, too.

I'm sure be happy to hear their voice on this product, but (given the
preamble) I don't know if the editor would be fine with co-authorship;
I'll ask, just to be sure.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-01-05 Thread Sandro Tosi
On Tue, Jan 6, 2009 at 00:20, Christopher Barker chris.bar...@noaa.gov wrote:
 Sandro Tosi wrote:

 The idea of the book is to start with simple plots, describing the
 methods we call and how they work, to go into more details along the
 book.

 I suggest that you focus on the OO interface, rather than the pylab
 interface from the beginning. This will ease the transition from command
 line use to embedding, help folks understand the structure of MPL, and is
 the right way to do it (IMHO) with an OO  language anyway.

So you suggest to start from matplotlib.pyplot and not from pylab?
Well, sure it's an interesting point-of-view. I'll reflect about your
proposal.

Thanks!!

-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-01-05 Thread Sandro Tosi
On Tue, Jan 6, 2009 at 01:48, Christopher Barker chris.bar...@noaa.gov wrote:
 Sandro Tosi wrote:

 So you suggest to start from matplotlib.pyplot and not from pylab?

 actually, I think matpoltlib.pyplot still has all of pylab in it, just not
 all of numpy also.

yes, pylab glues pyplot and numpy together

 So yes, do that, but what I meant was to focus on using
 the OO interface, rather than the state machine interface:

 rather than 'gca', 'gcf', etc, store references to the figures and axis,
 etc:

 this kind of thing:

 fig = plt.Figure()

 ax = fig.add_subplot(111)
 ax.plot([1,2,3])

 ax.set_title('hi mom')

 ax.grid(True)

 ax.set_xlabel('time')
 ax.set_ylabel('volts')

Ahhh ok, now I got it: I always use the style above, so I didn't know
the difference :) A reference to the doc is:
http://matplotlib.sourceforge.net/faq/usage_faq.html

 While we are at it, discourage the use of import * !

Absolutely!

Your suggestions were really precious: please don't stop the stream,
it anything comes up :)

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] histogram(x, bin): x-axis range should be based on bin.min() and bin.max() when bin is a sequence

2008-12-19 Thread Sandro Tosi
Hello Ondrej,

On Fri, Dec 19, 2008 at 18:18, Ondrej Certik ond...@certik.cz wrote:
 we got this Debian bug:

 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503148
...
 I tested that this applies to 0.98.3.  Is this a bug?

This is fixed in the latest release (0.98.4 or in 0.98.5); I'm working
on uploading it Debian, together with John and Michael (and all dev
team), to have a feasable release.

Cheers,
-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] histogram(x, bin): x-axis range should be based on bin.min() and bin.max() when bin is a sequence

2008-12-19 Thread Sandro Tosi
On Fri, Dec 19, 2008 at 18:47, Ondrej Certik ond...@certik.cz wrote:
 On Fri, Dec 19, 2008 at 6:34 PM, Sandro Tosi mo...@debian.org wrote:
 This is fixed in the latest release (0.98.4 or in 0.98.5); I'm working
 on uploading it Debian, together with John and Michael (and all dev
 team), to have a feasable release.

 Ah, I didn't know you are on the mpl dev team as well. That's great.

Oh no no: I bother them for something, and they (to force me to
silence) release a fix :D

Cheers,
-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [matplotlib-devel] matplotlib 0.98.3 release candidate, please test

2008-08-04 Thread Sandro Tosi
2008/8/4 Michael Droettboom [EMAIL PROTECTED]:
 The graphviz failing is my bad.  I failed to test the latex doc build (since
 it never works for me anyway due to a too-old version of latex).  This is
 fixed in SVN r5962, and a patch against doc/sphinxext/inheritance_diagram.py
 is attached.

Err... the attached patch is empty :D Anyhow, I'm subscribed to commit
ml, so I got it:

--- trunk/matplotlib/doc/sphinxext/inheritance_diagram.py
2008-08-04 12:20:25 UTC (rev 5961)
+++ trunk/matplotlib/doc/sphinxext/inheritance_diagram.py
2008-08-04 13:09:02 UTC (rev 5962)
@@ -346,7 +346,7 @@
parts = node['parts']

graph_hash = get_graph_hash(node)
-name = inheritance%s
+name = inheritance%s % graph_hash
pdf_path = os.path.join('_static', name + .pdf)

graph.run_dot(['-Tpdf', '-o%s' % pdf_path],

(sorry if gmail wraps it).

I'll apply it once at home and test if works in Debian: Thanks for the
prompt reply!!

Sandro

-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-08-03 Thread Sandro Tosi
On Sun, Aug 3, 2008 at 10:54, Mikhail Gusarov [EMAIL PROTECTED] wrote:
 As Lenny is already in freeze, I backported fix to 0.4.1 and now trying
 to get the confirmation from release team to upload it to
 testing-proposed-updates.

 Please test the package: http://dottedmag.net/~mag/sphinx/

I tested the package and it works fine (didn't test in a chroot, but
it works with svn-bp).

John, when you can, please create an official point release: I'm ready
to package it, and the Debian Release Team asked me to upload in
unstable (the staging are before testing/Lenny) to evaluate its
inclusion in Lenny (so faster is better :D)

Thanks,
Sandro

-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-08-03 Thread Sandro Tosi
On Sun, Aug 3, 2008 at 20:19, Charlie Moad [EMAIL PROTECTED] wrote:
 On Sun, Aug 3, 2008 at 10:25 AM, Sandro Tosi [EMAIL PROTECTED] wrote:
 John, when you can, please create an official point release: I'm ready
 to package it, and the Debian Release Team asked me to upload in
 unstable (the staging are before testing/Lenny) to evaluate its
 inclusion in Lenny (so faster is better :D)

 I was going to wait on John about the docs, but I went ahead and cut the
 0.98.3 release.  The sdist including the docs was 34MB, so I decided not to
 include them.  This would also cause the binaries to be huge if we included
 them there as well.  The source release is up/tagged and I will post
 binaries asap.

Thanks a lot, Charlie!! I'm downloading the brand new tarball and I'll
upgrade the Debian package short after.

Cheers,
-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-08-03 Thread Sandro Tosi
On Sun, Aug 3, 2008 at 20:29, Sandro Tosi [EMAIL PROTECTED] wrote:
 On Sun, Aug 3, 2008 at 20:19, Charlie Moad [EMAIL PROTECTED] wrote:
 I was going to wait on John about the docs, but I went ahead and cut the
 0.98.3 release.  The sdist including the docs was 34MB, so I decided not to
 include them.  This would also cause the binaries to be huge if we included
 them there as well.  The source release is up/tagged and I will post
 binaries asap.

 Thanks a lot, Charlie!! I'm downloading the brand new tarball and I'll
 upgrade the Debian package short after.

While building (in a clean chroot) the package to upload in Debian, I
noticed some errors at doc creation (I attach the complete log, it
might help you to track the issue), something like:

WARNING: 
/tmp/buildd/matplotlib-0.98.3/build/lib.linux-x86_64-2.5/matplotlib/axes.py:docstring
of matplotlib.axes.Axes.acorr:35: (ERROR/3) Unexpected indentation.
WARNING: autodoc:0: (ERROR/3) Unexpected indentation.
WARNING: 
/tmp/buildd/matplotlib-0.98.3/build/lib.linux-x86_64-2.5/matplotlib/backend_bases.py:docstring
of matplotlib.backend_bases.FigureCanvasBase.stop_event_loop_default:8:
(WARNING/2) Literal block expected; none found.
WARNING: /tmp/buildd/matplotlib-0.98.3/doc/api/backend_qt4agg_api.rst:5:
(WARNING/2) autodoc can't import/find module
'matplotlib.backends.backend_qt4agg', it reported error: cannot
import name QtCore,please check your spelling and sys.path
WARNING: /tmp/buildd/matplotlib-0.98.3/doc/api/cbook_api.rst:9:
(WARNING/2) error while formatting signature for
matplotlib.cbook.Xlator: arg is not a Python function
WARNING: 
/tmp/buildd/matplotlib-0.98.3/build/lib.linux-x86_64-2.5/matplotlib/pyplot.py:docstring
of matplotlib.pyplot.acorr:55: (ERROR/3) Unexpected indentation.
WARNING: 
/tmp/buildd/matplotlib-0.98.3/build/lib.linux-x86_64-2.5/matplotlib/pyplot.py:docstring
of matplotlib.pyplot.annotate:17: (ERROR/3) Unexpected indentation.
[...]
resolving references...
writing... Error: stdin:1: syntax error near line 1
context: digraph   inheritance  s {
WARNING: /tmp/buildd/matplotlib-0.98.3/doc/index.rst:None: (WARNING/2)
'dot' returned the errorcode 1
WARNING: unusable reference target found:
https://sourceforge.net/project/admin/?group_id=80706
Error: stdin:1: syntax error near line 1
context: digraph   inheritance  s {
WARNING: /tmp/buildd/matplotlib-0.98.3/doc/index.rst:None: (WARNING/2)
'dot' returned the errorcode 1
Error: stdin:1: syntax error near line 1
context: digraph   inheritance  s {
WARNING: /tmp/buildd/matplotlib-0.98.3/doc/index.rst:None: (WARNING/2)
'dot' returned the errorcode 1
Error: stdin:1: syntax error near line 1
context: digraph   inheritance  s {
WARNING: /tmp/buildd/matplotlib-0.98.3/doc/index.rst:None: (WARNING/2)
'dot' returned the errorcode 1

I don't know if something bad has happened in mpl code or something in
Debian is broken right now (graphviz?), but it would help me if
someone can confirm this is not happening only on my box.

Thanks,
-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


matplotlib_0.98.3-1_amd64.build.bz2
Description: BZip2 compressed data
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Sandro Tosi
Hi John,

On Thu, Jul 31, 2008 at 18:28, John Hunter [EMAIL PROTECTED] wrote:

 Sandro, just a reminder, we are still holding on your testing of the
 new release candidate with the 0.4.2 sphinx bugfix.  The current
 release candidate is

 http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3rc3.tar.gz

Yeah, sorry, I got some RealLife stuff going on, now done. I'll do it
this night, since I'm just seeing Mikhail is updating sphinx to 0.4.2
in our svn repo.

Thanks,
Sandro

-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Sandro Tosi
Hi John,

On Thu, Jul 31, 2008 at 18:35, Sandro Tosi [EMAIL PROTECTED] wrote:
 Hi John,

 On Thu, Jul 31, 2008 at 18:28, John Hunter [EMAIL PROTECTED] wrote:

 Sandro, just a reminder, we are still holding on your testing of the
 new release candidate with the 0.4.2 sphinx bugfix.  The current
 release candidate is

 http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3rc3.tar.gz

 Yeah, sorry, I got some RealLife stuff going on, now done. I'll do it
 this night, since I'm just seeing Mikhail is updating sphinx to 0.4.2
 in our svn repo.

The doc compilation is fine, the show-inheritance is fixed, but just a
confirmation: what was the page with the clickable image? I seem to
remember 'api/artist_api.html' but now the image in it doesn't allow
to be browsable.

I'll let you know if something else comes out.

Thanks for the collaboration (to Mikhail too :) ),
Sandro

-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Sandro Tosi
On Thu, Jul 31, 2008 at 20:49, Michael Droettboom [EMAIL PROTECTED] wrote:
 I think perhaps he's referring to the inheritance diagrams which are HTML
 image maps.  It seems that this functionality has somehow broken.  (The
 image map is not getting returned from dot and inserted into the HTML).  I'm
 looking into it.

Yeah, that's what I was referring to. Thanks Mike.

-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Sandro Tosi
On Thu, Jul 31, 2008 at 21:06, Michael Droettboom [EMAIL PROTECTED] wrote:
 It seems to have broken with a recent update to Sphinx.  Sphinx changed the
 way that cross-reference urls are stored in the document tree.  I have
 updated matplotlib to use an approach that work for Sphinx both before and
 after this change (SVN r5940).

 I don't consider this a show-stopper if it's too late to push another
 matplotlib update out.

 Long term, this functionality will move to Sphinx itself, so these
 disconnects will hopefully get caught sooner.

Great, thanks! anyhow, we're still playing with a rc version, so
there's room for it to make into the final release.

For Debian, we still need (I think) a couple of day to upload mpl,
because we need first sphinx 0.4.2 to enter unstable, then we can
upload.

Cheers,
-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] debian install

2008-07-10 Thread Sandro Tosi
Hello Ben,

On Wed, Jul 9, 2008 at 19:37, Ben Axelrod [EMAIL PROTECTED] wrote:
 I get errors when I add:

   deb http://anakonda.altervista.org/debian packages/

   deb-src http://anakonda.altervista.org/debian sources/

 to my /etc/apt/sources.list.  Is this still the preferred method for
 installing on Debian?

Matplotlib is available on official debian repository[1] at version
0.98.1 (and hopefully soon 0.98.2) both for unstable and testing.
Maybe you're on stable?

Cheers,
Sandro

[1] http://packages.qa.debian.org/m/matplotlib.html

-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users