[Matplotlib-users] PDF (but not screen) output raises Path lacks initial MOVETO

2011-09-15 Thread Eric O LEBIGOT (EOL)
I had a closer look at an issue raised previously (http://old.nabble.com/can%27t-output-emf-pdf-eps-figure-file-corrently-with-my-dataset.-to31104695.html#a31107307), because I found out where the problem lies: when plotting a figure in log scale with some null values, screen plots display fine

[Matplotlib-users] Colour generator for a stacked bar plot

2011-09-15 Thread Nils Wagner
Hi all, I am looking for a simple method to generate various colours (n 15, n denotes the number of colours) for a stacked bar plot. Any pointer would be appreciated. The example http://matplotlib.sourceforge.net/examples/pylab_examples/table_demo.html generates pastel colours. However the

[Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread falbriard
Having issues with installing the matplotlib package under Linux SUSE SLES 11 SP1 (s390): The original distribution gcc throws an error: src/ft2font.h:14:22: error: ft2build.h: No such file or directory when adding the file ft2build.h the linkage process stops at this error: G++ cannot find

[Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread falbriard
Having issues with installing the matplotlib package under Linux SUSE SLES 11 SP1 (s390): The original distribution gcc throws an error: src/ft2font.h:14:22: error: ft2build.h: No such file or directory when adding the file ft2build.h the linkage process stops at this error: G++ cannot

[Matplotlib-users] cross hatching in contours?

2011-09-15 Thread Jonathan Slavin
I'm wondering if there is some way to do cross hatching as a way to fill contours rather than colors (using contourf). The only references to cross hatching I see in the documentation are for patches type objects. As far as I can tell, contour and contourf return objects of their own type

Re: [Matplotlib-users] Colour generator for a stacked bar plot

2011-09-15 Thread Tony Yu
On Thu, Sep 15, 2011 at 7:12 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: Hi all, I am looking for a simple method to generate various colours (n 15, n denotes the number of colours) for a stacked bar plot. Any pointer would be appreciated. The example

Re: [Matplotlib-users] PDF (but not screen) output raises Path lacks initial MOVETO

2011-09-15 Thread John Hunter
On Thu, Sep 15, 2011 at 4:03 AM, Eric O LEBIGOT (EOL) eric.lebi...@normalesup.org wrote: It would be better if Matplotlib's backends were consistent, here (i.e. if it failed both on screen and when generating the PDF, or if it did not fail at all). I attach a slightly modified version of the

Re: [Matplotlib-users] canvas.draw() memory issue? (PyQt4)

2011-09-15 Thread Keith Hughitt
Confirmed with: PyQt4 4.8.3 Matplotlib 1.1.0 Not sure what the cause is though. Keith On Fri, Sep 9, 2011 at 6:04 PM, Matt Earnshaw m...@earnshaw.org.uk wrote: Hi all, I am encountering a memory leak type issue when running the following, for example. http://codepad.o rrg/TNuCLT3k

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread Michael Droettboom
I wouldn't recommend trying to build freetype from source. Have you installed the freetype development package? I'm not familiar with SuSE, but on RedHat/Fedora this would be accomplished by (as root) yum install freetype2-dev and on Debian/Ubuntu apt-get install freetype2-devel. Mike On

Re: [Matplotlib-users] PDF (but not screen) output raises Path lacks initial MOVETO

2011-09-15 Thread Eric O LEBIGOT (EOL)
John Hunter-4 wrote: On Thu, Sep 15, 2011 at 4:03 AM, Eric O LEBIGOT (EOL) eric.lebi...@normalesup.org wrote: It would be better if Matplotlib's backends were consistent, here (i.e. if it failed both on screen and when generating the PDF, or if it did not fail at all). I attach a

Re: [Matplotlib-users] canvas.draw() memory issue? (PyQt4)

2011-09-15 Thread John Hunter
On Fri, Sep 9, 2011 at 5:04 PM, Matt Earnshaw m...@earnshaw.org.uk wrote: Hi all, I am encountering a memory leak type issue when running the following, for example. http://codepad.org/TNuCLT3k Matplotlib version: 0.99.3 PyQt4 Version: 4.8.5 I found a thread in the archive relating to

Re: [Matplotlib-users] PDF (but not screen) output raises Path lacks initial MOVETO

2011-09-15 Thread Michael Droettboom
I was able to confirm this bug with 1.0.1, but it has already been fixed in git master. This fix should make it into the next release. I used git bisect to track down the point at which it was fixed and turned up this:

Re: [Matplotlib-users] Hatching linewidth?

2011-09-15 Thread Jeffrey Blackburne
On Sep 14, 2011, at 4:04 PM, Jeffrey Blackburne wrote: I am trying to create a hatched region, with a diagonal lines hatch pattern. When using the PS backend, the hatch lines come out very narrow. Is there a way to increase the thickness of the hatch lines? I am using mpl version 1.0.1. Ok,

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread falbriard
Thanks Michael for your quick reply. I will consider use of the yum tool to install the per-requisite and future updates. Meanwhile I got a step forwards with help of the freetype developer forum and I succeeded to build the freetype2 from the source. So I've also repeated the python setup.py

Re: [Matplotlib-users] pylab collides with fmin?

2011-09-15 Thread Raymond Hawkins
Thanks. Removing the import of pylab and adding your suggested import matplotlib.pyplot as plt worked. On Sep 14, 2011, at 12:46 PM, Eric Firing wrote: On 09/14/2011 09:17 AM, Raymond Hawkins wrote: I'm getting odd behavior when I try to use fmin and pylab in the same program. The issue is

Re: [Matplotlib-users] pylab collides with fmin?

2011-09-15 Thread Raymond Hawkins
Thanks. With this explanation I was able to get things to work. On Sep 14, 2011, at 12:41 PM, Benjamin Root wrote: On Wed, Sep 14, 2011 at 2:17 PM, Raymond Hawkins rhawk...@earthlink.net wrote: I'm getting odd behavior when I try to use fmin and pylab in the same program. The issue is

[Matplotlib-users] griddata

2011-09-15 Thread Nils Wagner
Hi all, what are the differences between the griddata implementations in matplotlib and scipy, i.e. from scipy.interpolate import griddata and from matplotlib.mlab import griddata Is the Shepard algorithm available in matplotlib/scipy ? Nils Reference: Robert J. Renka Algorithm 790:

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread John Hunter
On Thu, Sep 15, 2011 at 11:42 AM, falbriard clau...@br.ibm.com wrote: Thanks Michael for your quick reply. I will consider use of the yum tool to install the per-requisite and future updates.  Meanwhile I got a step forwards with help of the freetype developer forum and I succeeded to build

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread Filipe Pires Alvarenga Fernandes
Hi, On SUSE you have zypper I'm not familiar with SUSE repos, but OpenSUSE repos do have matplotlib, just type: sudo zypper in python-matplolib that should install it for you. -Filipe On Thu, Sep 15, 2011 at 14:22, John Hunter jdh2...@gmail.com wrote: On Thu, Sep 15, 2011 at 11:42 AM,

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread Benjamin Root
On Thu, Sep 15, 2011 at 1:22 PM, John Hunter jdh2...@gmail.com wrote: On Thu, Sep 15, 2011 at 11:42 AM, falbriard clau...@br.ibm.com wrote: Thanks Michael for your quick reply. I will consider use of the yum tool to install the per-requisite and future updates. Meanwhile I got a step

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread John Hunter
On Thu, Sep 15, 2011 at 1:31 PM, Filipe Pires Alvarenga Fernandes ocef...@gmail.com wrote: Hi, On SUSE you have zypper I'm not familiar with SUSE repos, but OpenSUSE repos do have matplotlib, just type: sudo zypper in python-matplolib that should install it for you. And if you want to

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread Filipe Pires Alvarenga Fernandes
On Thu, Sep 15, 2011 at 14:34, John Hunter jdh2...@gmail.com wrote: On Thu, Sep 15, 2011 at 1:31 PM, Filipe Pires Alvarenga Fernandes ocef...@gmail.com wrote: Hi, On SUSE you have zypper I'm not familiar with SUSE repos, but OpenSUSE repos do have matplotlib, just type: sudo zypper in

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread Filipe Pires Alvarenga Fernandes
On Thu, Sep 15, 2011 at 14:48, Filipe Pires Alvarenga Fernandes ocef...@gmail.com wrote: On Thu, Sep 15, 2011 at 14:34, John Hunter jdh2...@gmail.com wrote: On Thu, Sep 15, 2011 at 1:31 PM, Filipe Pires Alvarenga Fernandes ocef...@gmail.com wrote: Hi, On SUSE you have zypper I'm not

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread falbriard
Thanks friends from the Matplotlib and Freetype forum, =) I've succeeded to compile all per-requisites from the source and executed the python build and install successfully under the SUSE Linux. I've already executed a few sample cases with a Agg .png render, its working perfectly under the

[Matplotlib-users] draggable annotation bug and fix

2011-09-15 Thread Daniel Hyams
There seems to be a problem with the draggable annotation code when the annotation is just clicked, and not dragged. If you run the following code: import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ann = ax.annotate('local max', xy=(2, 1), xytext=(3,