[Matplotlib-users] Line2D on multiple plots?

2009-08-17 Thread Ole Streicher
Hi, I want to show the same data on multiple plots. Is it possible to re-use the Line2D object for that? t.m., line = axes1.plot(xdata, ydata, ...) ... axes2.lines.append(line) Or is a Line2D bound to a certain axes instance? Best regards Ole

Re: [Matplotlib-users] wx and matplotlib

2009-08-17 Thread Werner F. Bruhin
Hi Chris, Christopher Barker wrote: Werner F. Bruhin wrote: I am trying to put together a wxPython frame using py.aui to show multiple matplotlib.figures/canvas. I'd recommend you take a look at wxMPL -- it's a nice way to embed MPL in wx. I'll have a look at this.

[Matplotlib-users] fill step plots

2009-08-17 Thread Florian Leitner
Hi; I've got a rather simple question. I want to (color) fill a step plot below the line, but using the fill() function always creates regular plots, not step plots, and fillstyle doesn't work as I'd expect it to. How can I fill a step plot? Something like this: import matplotlib.pyplot as

Re: [Matplotlib-users] executing function when view interval changes

2009-08-17 Thread Jae-Joon Lee
I took a stab at this during the weekends and a patch is attached. 1) introduces a new command subplot2grid. e.g., subplot2grid(shape=(3,3), loc=(0,0), colspan=3) it still creates a Subplot instance. 2) subplot command can take a SubplotSpec instance which is created using the GridSpec. gs =

Re: [Matplotlib-users] fill step plots

2009-08-17 Thread Eric Firing
Florian Leitner wrote: Hi; I've got a rather simple question. I want to (color) fill a step plot below the line, but using the fill() function always creates regular plots, not step plots, and fillstyle doesn't work as I'd expect it to. How can I fill a step plot? Something like this:

[Matplotlib-users] how to get the properties for elements in a collection?

2009-08-17 Thread Carlos Grohmann
Hi, I have a collection, which is a scatter plot, and I want to iterate through all the elements in this collection and retrieve their properties, like facecolor. the scatterplot is created like this: axes.scatter(x,y, c=some_list, cmap=plt.get_cmap(colmap)) many thanks -- Carlos Henrique

[Matplotlib-users] pywcsgrid2 : matplotlib with astronomical fits images

2009-08-17 Thread Jae-Joon Lee
Hello, pywcsgrid2 is my personal project to display astronomical fits images using matplotlib. While there are other tools, my approach is to extend the capability of the matplolib, rather than building something new on top of it. pywcsgrid2 provides a custom Axes class (derived from the

[Matplotlib-users] matplotlib on mac os x question

2009-08-17 Thread Walid Majid
Hi, I am new to matplotlib and having trouble running a simple example, which I found on one of the tutorial pages: import matplotlib.pyplot as plt plt.plot([1,2,3]) plt.ylabel('some numbers') plt.show() The problem I encounter is that no plot actually shows up when I run the above sequence