Re: [Matplotlib-users] Loading txt files

2011-11-02 Thread yelena
It works! Thank you very much! :) Dale Chayes wrote: Attached is a very simple version. It assumes your sample data is in a file. The first line is magic and makes significant assumptions about where python is installed on your system. This may or may not be the right answer for your

[Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Mads Ipsen
Hi, I am trying to build MPL 1.1.0 with VS 2008 on Windows XP 32. I have installed * Python 2.7.2 * Numpy 1.6 In the docs it says Windows users only need the first two (python and numpy) since the others are built into the matplotlib Windows installers available for download at the

Re: [Matplotlib-users] Warning: converting a masked element to nan

2011-11-02 Thread Michael Droettboom
matplotlib should handle both masked arrays and arrays with NaNs and treat both the same. Can you reduce the script to something that can be run independently without data? It's not clear to me yet why this is failing. Mike On 11/01/2011 05:24 PM, questions anon wrote: Hi All, I am trying

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Michael Droettboom
On 11/02/2011 10:53 AM, Mads Ipsen wrote: Hi, I am trying to build MPL 1.1.0 with VS 2008 on Windows XP 32. I have installed * Python 2.7.2 * Numpy 1.6 In the docs it says Windows users only need the first two (python and numpy) since the others are built into the matplotlib Windows

Re: [Matplotlib-users] Warning: converting a masked element to nan

2011-11-02 Thread Benjamin Root
I have seen situations when using datetimes for the x axis where if all the data being viewed is masked (or nans, or whatever) then it errors out because the axis range can't be determined. Maybe that is what is happening here? Ben Root On Wed, Nov 2, 2011 at 11:48 AM, Michael Droettboom

[Matplotlib-users] v1.1.0 crashes upon exit

2011-11-02 Thread John Jameson
Thanks Ben! I just updated my Macports and it brought in v1.1.0 so I will check it out for easier animation. 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

[Matplotlib-users] Scrolling plot and colorbar

2011-11-02 Thread Gökhan Sever
Hello, I slightly modified the example show at http://www.scipy.org/Cookbook/Matplotlib/ScrollingPlot to plot image data. My version of the code is at: http://code.google.com/p/ccnworks/source/browse/trunk/various/scroll.py What is the correct way to add a colorbar to this plot? A simple

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:             

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Mads Ipsen
On 11/02/2011 05:50 PM, Michael Droettboom wrote: On 11/02/2011 10:53 AM, Mads Ipsen wrote: Hi, I am trying to build MPL 1.1.0 with VS 2008 on Windows XP 32. I have installed * Python 2.7.2 * Numpy 1.6 In the docs it says Windows users only need the first two (python and numpy) since the

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

2011-11-02 Thread Michael Droettboom
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? 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 +++

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Michael Droettboom
On 11/02/2011 01:34 PM, Mads Ipsen wrote: On 11/02/2011 05:50 PM, Michael Droettboom wrote: On 11/02/2011 10:53 AM, Mads Ipsen wrote: Any clues to why ft2build.h cannot be located. The above docs says it should be part of the binary installer. The binary for freetype is included with the

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

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

2011-11-02 Thread Benjamin Root
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

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Mads Ipsen
On 11/02/2011 08:43 PM, Michael Droettboom wrote: On 11/02/2011 01:34 PM, Mads Ipsen wrote: On 11/02/2011 05:50 PM, Michael Droettboom wrote: On 11/02/2011 10:53 AM, Mads Ipsen wrote: Any clues to why ft2build.h cannot be located. The above docs says it should be part of the binary

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Christoph Gohlke
On 11/2/2011 1:11 PM, Mads Ipsen wrote: On 11/02/2011 08:43 PM, Michael Droettboom wrote: On 11/02/2011 01:34 PM, Mads Ipsen wrote: On 11/02/2011 05:50 PM, Michael Droettboom wrote: On 11/02/2011 10:53 AM, Mads Ipsen wrote: Any clues to why ft2build.h cannot be located. The above docs says

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

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Daniel Hyams
I had to do this sort of thing recently, but I did have to resort to some hackery to get it done (that I'm not proud of...I was in a bit of a hurry). Any corrections and or hand-slappings form the mpl-devs are, I'm sure, well deserved. AnywayI can only tell you what I did to get it working,

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Mads Ipsen
On 11/02/2011 09:28 PM, Christoph Gohlke wrote: On 11/2/2011 1:11 PM, Mads Ipsen wrote: On 11/02/2011 08:43 PM, Michael Droettboom wrote: On 11/02/2011 01:34 PM, Mads Ipsen wrote: On 11/02/2011 05:50 PM, Michael Droettboom wrote: On 11/02/2011 10:53 AM, Mads Ipsen wrote: Any clues to why

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

2011-11-02 Thread Benjamin Root
On Wed, Nov 2, 2011 at 3:33 PM, Sandro Tosi mo...@debian.org wrote: 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

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Christoph Gohlke
On 11/2/2011 1:39 PM, Mads Ipsen wrote: On 11/02/2011 09:28 PM, Christoph Gohlke wrote: On 11/2/2011 1:11 PM, Mads Ipsen wrote: On 11/02/2011 08:43 PM, Michael Droettboom wrote: On 11/02/2011 01:34 PM, Mads Ipsen wrote: On 11/02/2011 05:50 PM, Michael Droettboom wrote: On 11/02/2011 10:53

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Mads Ipsen
On 11/02/2011 09:46 PM, Christoph Gohlke wrote: On 11/2/2011 1:39 PM, Mads Ipsen wrote: On 11/02/2011 09:28 PM, Christoph Gohlke wrote: On 11/2/2011 1:11 PM, Mads Ipsen wrote: On 11/02/2011 08:43 PM, Michael Droettboom wrote: On 11/02/2011 01:34 PM, Mads Ipsen wrote: On 11/02/2011 05:50 PM,

Re: [Matplotlib-users] Warning: converting a masked element to nan

2011-11-02 Thread questions anon
Thanks, I think you are right about the datetimes for the x axis causing the problem. Does anyone have any ideas how to resolve this? On Thu, Nov 3, 2011 at 4:11 AM, Benjamin Root ben.r...@ou.edu wrote: I have seen situations when using datetimes for the x axis where if all the data being

[Matplotlib-users] Unit testing code that generate matplotlib plots

2011-11-02 Thread Wes McKinney
Hi guys, Is there a common practice for unit testing code that creates matplotlib plots? I'm mainly just interested in code coverage versus correctness (making sure the code *works*) for now. I guess one way would be to disable the GUI backend so GUI elements don't get created (if the user is

Re: [Matplotlib-users] Unit testing code that generate matplotlib plots

2011-11-02 Thread John Hunter
On Wed, Nov 2, 2011 at 4:16 PM, Wes McKinney wesmck...@gmail.com wrote: Hi guys, Is there a common practice for unit testing code that creates matplotlib plots? I'm mainly just interested in code coverage versus correctness (making sure the code *works*) for now. I guess one way would be to

Re: [Matplotlib-users] Unit testing code that generate matplotlib plots

2011-11-02 Thread Wes McKinney
On Wed, Nov 2, 2011 at 5:20 PM, John Hunter jdh2...@gmail.com wrote: On Wed, Nov 2, 2011 at 4:16 PM, Wes McKinney wesmck...@gmail.com wrote: Hi guys, Is there a common practice for unit testing code that creates matplotlib plots? I'm mainly just interested in code coverage versus correctness

Re: [Matplotlib-users] Unit testing code that generate matplotlib plots

2011-11-02 Thread Wes McKinney
On Wed, Nov 2, 2011 at 5:43 PM, Wes McKinney wesmck...@gmail.com wrote: On Wed, Nov 2, 2011 at 5:20 PM, John Hunter jdh2...@gmail.com wrote: On Wed, Nov 2, 2011 at 4:16 PM, Wes McKinney wesmck...@gmail.com wrote: Hi guys, Is there a common practice for unit testing code that creates

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Michael Droettboom
On 11/02/2011 05:09 PM, Mads Ipsen wrote: Works like a charm. What about support for the Qt backend. Do I need any Qt dev. env. installed or does it just rely on PyQt and Qt binaries being present on the machine? Just PyQt and Qt binaries should be enough -- there is no C/C++ code in

Re: [Matplotlib-users] Scrolling plot and colorbar

2011-11-02 Thread Gökhan Sever
A self response: self.fig.colorbar(self.plot_data) does the trick. On Wed, Nov 2, 2011 at 11:14 AM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, I slightly modified the example show at http://www.scipy.org/Cookbook/Matplotlib/ScrollingPlot to plot image data. My version of the code is

[Matplotlib-users] PyPI has version 1.0.1

2011-11-02 Thread Scott Lasley
Hi, I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so pip and easy_install install version 1.0.1 instead of version 1.1.0. Can somebody update the listing at the PyPI site? Thanks, Scott --

Re: [Matplotlib-users] PyPI has version 1.0.1

2011-11-02 Thread Benjamin Root
On Wednesday, November 2, 2011, Scott Lasley slas...@space.umd.edu wrote: Hi, I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so pip and easy_install install version 1.0.1 instead of version 1.1.0. Can somebody update the listing at the PyPI site? Thanks, Scott And

Re: [Matplotlib-users] PyPI has version 1.0.1

2011-11-02 Thread John Hunter
On Wed, Nov 2, 2011 at 10:02 PM, Benjamin Root ben.r...@ou.edu wrote: I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so pip and easy_install install version 1.0.1 instead of version 1.1.0.  Can somebody update the listing at the PyPI site? Thanks, Scott And if

Re: [Matplotlib-users] PyPI has version 1.0.1

2011-11-02 Thread Benjamin Root
On Wednesday, November 2, 2011, John Hunter jdh2...@gmail.com wrote: On Wed, Nov 2, 2011 at 10:02 PM, Benjamin Root ben.r...@ou.edu wrote: I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so pip and easy_install install version 1.0.1 instead of version 1.1.0. Can