Re: [Matplotlib-users] ipython threading fails with macosx backend

2009-07-02 Thread Adam
Trying to plot anything with any dashed pattern causes the error: Python 2.6.2 (r262:71600, Jun 20 2009, 12:18:19) Type "copyright", "credits" or "license" for more information. IPython 0.9.1 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickre

Re: [Matplotlib-users] ipython threading fails with macosx backend

2009-07-02 Thread Michiel de Hoon
> I can't draw dashed lines. In principle, you should be able to draw dashed lines with the MacOSX backend. Can you post a complete script that triggers this error? > Thu Jul 2 14:51:48 Python-64[56094] : > CGContextSetLineDash: invalid > dash array: negative lengths are not allowed. --Michie

Re: [Matplotlib-users] gps-satellite sky-plot

2009-07-02 Thread Jeff Whitaker
Massimo Di Stefano wrote: > Hi All, > > > i'm starting to learn matplotlib, > for my study i need to parse the nmea sentence from a gps > and plot a "sky graphic" to plot satellite visibility. > > (i tried to write code from scratch ... it works but my teacher > suggest me to not reinvent the we

Re: [Matplotlib-users] contourf: black lines connecting contour levels?

2009-07-02 Thread Rick Muller
Oh, and I'm using the Agg backend, I think, whatever is the default. On Thu, Jul 2, 2009 at 7:19 PM, Rick Muller wrote: > JJ > > Thanks for the tips. I had seen one of those posts whilst googling around > for the bug, but discounted it because I'm not using an alpha value. > > Here are links to

Re: [Matplotlib-users] contourf: black lines connecting contour levels?

2009-07-02 Thread Rick Muller
JJ Thanks for the tips. I had seen one of those posts whilst googling around for the bug, but discounted it because I'm not using an alpha value. Here are links to one of the cookbook examples, and one of the files that I want to plot: http://files.getdropbox.com/u/533499/griddata-test.png http:/

[Matplotlib-users] gps-satellite sky-plot

2009-07-02 Thread Massimo Di Stefano
Hi All, i'm starting to learn matplotlib, for my study i need to parse the nmea sentence from a gps and plot a "sky graphic" to plot satellite visibility. (i tried to write code from scratch ... it works but my teacher suggest me to not reinvent the well, so, to have a good nema parser, i i

Re: [Matplotlib-users] memory leak with PyQt4 plus savefig or print_figure

2009-07-02 Thread Ralf Gommers
sorry, i replied to Mike and not to the list. see below. On Thu, Jul 2, 2009 at 2:57 PM, Ralf Gommers wrote: > Thanks for looking into this Mike. > > On Thu, Jul 2, 2009 at 10:39 AM, Michael Droettboom wrote: > >> It is not surprising that memory usage is much lower without printing the >> plot.

Re: [Matplotlib-users] [matplotlib-devel] crazy ideas for MPL

2009-07-02 Thread Gary Ruben
Is this an ideas thread? How about a "copy image to clipboard" button for the toolbar. Gary R. Pierre GM wrote: > Eh, can I play ? > * Something I'd really like to see is a way to access a given patch/ > line/collection/... by a string (a name) instead of having to find the > corresponding ele

Re: [Matplotlib-users] contourf: black lines connecting contour levels?

2009-07-02 Thread Jae-Joon Lee
The dropbox link is broken (you need a public url). What version of mpl and what backend are you using? There was a similar problem which has now been fixed. Try the work-around described in the thread below, and see if works. http://www.nabble.com/problems-with-contourf---alpha-td22553269.html

[Matplotlib-users] contourf: black lines connecting contour levels?

2009-07-02 Thread Rick Muller
When I do contourf plots in matplotlib, I get lines connecting the contour levels. This doesn't only appear to be an artifact of my plotting algorithms, it appears in this example from the matplotlib cookbook: http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data at least on m

Re: [Matplotlib-users] ipython threading fails with macosx backend

2009-07-02 Thread keflavich
OK, thanks. I don't really know why it's failing, but I'm going to continue trying to get other backends installed to test them. I also now have independent reasons not to use the MacOSX backend: Thu Jul 2 14:51:48 Python-64[56094] : CGContextSetLineDash: invalid dash array: negative lengths

[Matplotlib-users] contour plot: clabel manual changes figure properties

2009-07-02 Thread Valentin Flunkert
Hi, For a contour plot I use the option 'manual=True' in clabel to set the location of the labels manually. Before the plotting command I set some figure properties using rcParams as explained on this site: http://www.scipy.org/Cookbook/Matplotlib/LaTeX_Examples My Problem is, that the manual-o

[Matplotlib-users] Draw to Tkinter Canvas

2009-07-02 Thread Lars Ruoff
Hello, i'm new to the list. i'm using matplotlib via the networkx graph package. I wonder if there is a way i could draw a graph in a Tkinter canvas widget of my application. I.e. my Python application creates the Tkinter canvas and somehow passes it as an argument to a matplotlib draw function.

Re: [Matplotlib-users] [matplotlib-devel] crazy ideas for MPL

2009-07-02 Thread John Hunter
On Thu, Jul 2, 2009 at 1:00 PM, Pierre GM wrote: > Eh, can I play ? > * Something I'd really like to see is a way to access a given patch/ > line/collection/... by a string (a name) instead of having to find the > corresponding element in a list. That would mean converting lists into > dictionaries

Re: [Matplotlib-users] ipython threading fails with macosx backend

2009-07-02 Thread Brian Granger
As I understand it the Mac backend uses the PyOS_ImputHook trick, which means that no custom threading code is needed in IPython. Thus it should "just work" without any threading flags in both IPython *and* regular python. Just as an aside, wx is the only GUI toolkit that doesn't support this "ne

Re: [Matplotlib-users] Resize error with Qt4 backend

2009-07-02 Thread Brian Zambrano
On my system, this example appears to be working just fine. I even bumped the number of data points from 1000 to 10,000. I'm on OS X 10.5.7 with: matplotlib 0.98.5.2 PyQt 4.5.1 (GPL) Qt 4.5 (LGPL) Maybe try updating your PyQt installation? BZ On Thu, Jul 2, 2009 at 6:46 AM, Ole Streicher wrot

Re: [Matplotlib-users] [matplotlib-devel] crazy ideas for MPL

2009-07-02 Thread Pierre GM
Eh, can I play ? * Something I'd really like to see is a way to access a given patch/ line/collection/... by a string (a name) instead of having to find the corresponding element in a list. That would mean converting lists into dictionaries, or at least provide a way to map the list to a dicti

Re: [Matplotlib-users] Resize error with Qt4 backend

2009-07-02 Thread Darren Dale
On Thu, Jul 2, 2009 at 9:46 AM, Ole Streicher wrote: > Hello Darren, > > Darren Dale writes: > > I can't produce a segfault with the attached script. I have Qt-4.5.2, > > PyQt-4.5.1, and a checkout of the matplotlib trunk. > > OK, in this context it seems to work. > > I attach a script that shows

Re: [Matplotlib-users] ipython threading fails with macosx backend

2009-07-02 Thread Michael Droettboom
The Mac OS backend is fairly new, and I don't believe any of the backend-specific threading code that ipython requires has been implemented for the OS-X backend. Just wanted to drop a note to say "it's probably not you". But as a non-Mac user, I may be wrong, and I hope to be corrected :) Mi

[Matplotlib-users] ipython threading fails with macosx backend

2009-07-02 Thread keflavich
Hi, I'm using ipython 0.9.1 with the svn version of matplotlib on 64 bit python on mac os x 10.5.7. I have only been able to get python-64 running with the MacOSX backend; all of the others (wxpython, gtk, qt, tk) have failed for one reason or another. I've tried ipython without any flags and

Re: [Matplotlib-users] Basemap: GEOS_ERRORs

2009-07-02 Thread Stephane Raynaud
Yep, the same library (physical, on our network) fails depending only the computer, thus on its own internal libraries called by GEOS. By the way, I tried basemap with geos 3.0.4, and saw the "simplify()" method working. That's funny! On Thu, Jul 2, 2009 at 2:08 PM, Jeff Whitaker wrote: > Step

Re: [Matplotlib-users] "Ordinal must be >= 1" with SuplotHost and dates

2009-07-02 Thread Jae-Joon Lee
I can reproduce the error with the svn version. It seems that the problem is not SubplotHost specific, i.e., you have same problem if you use mpl's original axes with twinx. I think it has something to do with the axes sharing in general. Preventing autoscale of xaxis suppress the error. host.set

Re: [Matplotlib-users] Resize error with Qt4 backend

2009-07-02 Thread Ole Streicher
Hello Darren, Darren Dale writes: > I can't produce a segfault with the attached script. I have Qt-4.5.2, > PyQt-4.5.1, and a checkout of the matplotlib trunk. OK, in this context it seems to work. I attach a script that shows the problem. Run it, move the second diagram below the first, adjus

Re: [Matplotlib-users] Resize error with Qt4 backend

2009-07-02 Thread Ole Streicher
Hello Darren, Darren Dale writes: > I can't produce a segfault with the attached script. I have Qt-4.5.2, > PyQt-4.5.1, and a checkout of the matplotlib trunk. OK, in this context it seems to work. I attach a script that shows the problem. Run it, move the second diagram below the first, adjus

Re: [Matplotlib-users] Resize error with Qt4 backend

2009-07-02 Thread Darren Dale
On Thu, Jul 2, 2009 at 3:06 AM, Ole Streicher wrote: > Hi Brian, > > I have also some layout problems with the Qt4 backend. The worst one is > a SegFault when adjusting the width. > > Brian Zambrano writes: > > vbox = QVBoxLayout() > > vbox.addWidget(self.canvas) > > self.setLayout(vbox) > > Coul

Re: [Matplotlib-users] Basemap: GEOS_ERRORs

2009-07-02 Thread Jeff Whitaker
Stephane Raynaud wrote: > Hi (Jeff), > > > I recently performed updates to matplotlib and basemap. > >From this time, I have a random and reccurent error when I create a > Basemap instance. > Here is one example : > > from mpl_toolkits.basemap import Basemap Basemap(**{'lon_0': -4.5250

[Matplotlib-users] "Ordinal must be >= 1" with SuplotHost and dates

2009-07-02 Thread David GUERINEAU
Hi matplotlib_users ! I'm David from Berlin, and believe I'm experiencing some problem with the SubplotHost module: I'm generating graphs from hudge databases of cpu and ethernet statistics, and I wanted to mix several graphs concerning ethernet statistics in the same figure, with time as x axis,

[Matplotlib-users] Basemap: GEOS_ERRORs

2009-07-02 Thread Stephane Raynaud
Hi (Jeff), I recently performed updates to matplotlib and basemap. >From this time, I have a random and reccurent error when I create a Basemap instance. Here is one example : >>> from mpl_toolkits.basemap import Basemap >>> Basemap(**{'lon_0': -4.5250263598141309, 'urcrnrlat': 49.14015423167841

Re: [Matplotlib-users] Resize error with Qt4 backend

2009-07-02 Thread Ole Streicher
Hi Brian, I have also some layout problems with the Qt4 backend. The worst one is a SegFault when adjusting the width. Brian Zambrano writes: > vbox = QVBoxLayout() > vbox.addWidget(self.canvas) > self.setLayout(vbox) Could you just try to add a second canvas to the layout? vbox = QVBoxLayout(