[Matplotlib-users] Colormap for LineCollection

2007-11-26 Thread Tom Johnson
I would like to plot a set of lines where the color of each line is parametrized. Then I want to add a colorbar to the plot. For example, suppose I plot y=x+b for various values of b. For each line, I would like to set the color to a particular value of b. When plotting, all b values are normal

Re: [Matplotlib-users] viewing my data correctly

2007-11-26 Thread Bryan Fodness
Thank You! It works great. On Nov 26, 2007 7:02 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Bryan Fodness wrote: > > Could someone give me an idea how to get started with this so it > > coincides with my array of values. I took a look at the quadmesh_demo > > in the examples and do not see a st

Re: [Matplotlib-users] viewing my data correctly

2007-11-26 Thread Eric Firing
Bryan Fodness wrote: > Could someone give me an idea how to get started with this so it > coincides with my array of values. I took a look at the quadmesh_demo > in the examples and do not see a straightforward way to do this Maybe the docstrings make it sound more complicated than it really is.

Re: [Matplotlib-users] [Mac OS 10.4.11, Python 2.5] LineCollection error

2007-11-26 Thread Christopher Barker
> 1) We kluged a fix by manually adding get_xdata and get_ydata methods to > our derived class, but a) this seems like it shouldn't be necessary, and > b) it wasn't necessary before; > 2) Chris' hypothesis is that it has something to do w/ the work being > done on matplotlib to add units to dat

Re: [Matplotlib-users] Wanted: recommendations on embedding matplotlib in a wxPython application

2007-11-26 Thread C M
> > There is a link on that page to this > > exampleof direct > > embedding with wx. I was able to start with this and adapt it to my > needs. > > I've looked closely at this, and need to figure out how to translate it > from a stand-alone exa

Re: [Matplotlib-users] viewing my data correctly

2007-11-26 Thread Bryan Fodness
Could someone give me an idea how to get started with this so it coincides with my array of values. I took a look at the quadmesh_demo in the examples and do not see a straightforward way to do this On Nov 26, 2007 7:52 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > You can provide mesh coor

Re: [Matplotlib-users] Wanted: recommendations on embedding matplotlib in a wxPython application

2007-11-26 Thread Rich Shepard
On Mon, 26 Nov 2007, C M wrote: > So far in my experience, and as I was recommended, the "simplest, > easiest, most pragmatic approach" has been to forgo MPlot or WxMpl and > just embed directly in wxPython. That is the insight I seek. I've looked at the examples and the cookbook page ... > T

Re: [Matplotlib-users] Wanted: recommendations on embedding matplotlib in a wxPython application

2007-11-26 Thread C M
> > The wiki suggests either MPlot or WxMpl for embedding. Which might be > preferable for a display-only use? In other words, what would be the > simpliest, easiest, most pragmatic approach? > So far in my experience, and as I was recommended, the "simpliest, easiest, most pragmatic approach" has

Re: [Matplotlib-users] Wanted: recommendations on embedding matplotlib in a wxPython application

2007-11-26 Thread Rich Shepard
On Mon, 26 Nov 2007, Christopher Barker wrote: > I think wxMPL is a good option. I think MPlot gives you nifty tools for > editing the figure with a GUI, but I don't think you want that. Chris, Thank you. I'll go read about wxMPL then. Rich -- Richard B. Shepard, Ph.D. | In

Re: [Matplotlib-users] Specifying X,Y Pairs For Line Plots

2007-11-26 Thread Rich Shepard
On Mon, 26 Nov 2007, Christopher Barker wrote: > or better yet -- work with numpy arrays from the beginning: Chris, These values are retrieved from widgets on a notebook page and the plot will be used to display them on that tab. It would take more code to convert those values to a numpy arra

Re: [Matplotlib-users] Specifying X,Y Pairs For Line Plots

2007-11-26 Thread Christopher Barker
Rich Shepard wrote: >> x,y = zip(*[(15.0, 0.0), (30.0, 1.0), (70.0, 1.0), (85.0, 0.0)]) or better yet -- work with numpy arrays from the beginning: Either put x an y into separate arrays (which is what MPL expects), or if you like X and Y begin together (I do): points = numpy.array([(15.0, 0.0)

Re: [Matplotlib-users] [Mac OS 10.4.11, Python 2.5] LineCollection error

2007-11-26 Thread David.Goldsmith
Original posts attached. Ken McIvor wrote: David, I'm not aware of any compatibility problems when using WxMpl with MPL 0.91, but then again I can't remember if I ever tested it thoroughly. Could you please send me a short script that reproduces the problem, along with the complete error me

Re: [Matplotlib-users] Wanted: recommendations on embedding matplotlib in a wxPython application

2007-11-26 Thread Christopher Barker
Rich Shepard wrote: >The wiki suggests either MPlot or WxMpl for embedding. Which might be > preferable for a display-only use? In other words, what would be the > simpliest, easiest, most pragmatic approach? I think wxMPL is a good option. I think MPlot gives you nifty tools for editing the

[Matplotlib-users] Wanted: recommendations on embedding matplotlib in a wxPython application

2007-11-26 Thread Rich Shepard
Now that I have some familiarity with matplotlib, and I've read the cookbook/wiki page on embedding, I'd like recommendations to sort out my options. I don't need user interaction. On the display side, I have a notebook tab with a panel on which there are a bunch of widgets. These widgets al

[Matplotlib-users] colorbar and secondary axis label

2007-11-26 Thread Bryan Fodness
I would like to have my colorbar range from 0 to 1 and add a label (Leaf A) exactly like the Leaf B label on the other side of the y-axis. I have attached my .png -- from pylab import * #pcolor(n, shading='flat', cmap=cm.gray_r) contour

[Matplotlib-users] py2exe problem

2007-11-26 Thread Jeff Peery
Hello, I've been using matplotlib 0.87 and I upgraded to 0.91. I ran my setup script for py2exe which had been working flawlessly and now I get an error stating that the .../mpl-data/fonts is not a regular file or doesn't exist. I checked the filename path and it does actually exist. I'm usin

Re: [Matplotlib-users] howto write matplotlib backend?

2007-11-26 Thread Michael Droettboom
John Hunter wrote: > On Nov 26, 2007 7:30 AM, Mihail <[EMAIL PROTECTED]> wrote: >> Somewhere I found some hints how to get started writing a new backend for >> matplotlib. It >> mentioned some almost empty kind of template that you could extend for your >> needs. >> >> I cannot find this descriptio

Re: [Matplotlib-users] Incorrect Plot with matplotlib.axes3d :: Scatter3D

2007-11-26 Thread John Hunter
On Nov 24, 2007 2:49 PM, Karl Edler <[EMAIL PROTECTED]> wrote: > I was able to make Scatter3D erroneously shift its plot down by 0.2. I > have no idea why this happened but I can reproduce it. Karl, Unfortunately, the 3D support in matplotlib is not actively maintained. We included it in the di

Re: [Matplotlib-users] location of from pylab import * effects Tk widgets keyword=text

2007-11-26 Thread John Hunter
On Nov 24, 2007 8:46 PM, Michael Frauens <[EMAIL PROTECTED]> wrote: > > Wasn't sure where to post this so I'll keep it brief (and I have tried to > check forums, FAQ and guides) > > I'm a relative noob but have a Tk based GUI running properly and have used > Matplotlib successfully in two separate

Re: [Matplotlib-users] howto write matplotlib backend?

2007-11-26 Thread John Hunter
On Nov 26, 2007 7:30 AM, Mihail <[EMAIL PROTECTED]> wrote: > > Somewhere I found some hints how to get started writing a new backend for > matplotlib. It > mentioned some almost empty kind of template that you could extend for your > needs. > > I cannot find this description again. Would somebody h

[Matplotlib-users] howto write matplotlib backend?

2007-11-26 Thread Mihail
Somewhere I found some hints how to get started writing a new backend for matplotlib. It mentioned some almost empty kind of template that you could extend for your needs. I cannot find this description again. Would somebody help, please? Cheers Mihail -- View this message in context: http://

Re: [Matplotlib-users] ANN: basemap toolkit version 0.9.7 released

2007-11-26 Thread Vincent Schut
Jeff Whitaker wrote: > Vincent Schut wrote: >> Jeff Whitaker wrote: >> >> >>> There is an extra dependency on the GEOS (Geometry Engine) library >>> (http://geos.refractions.net). The source code is included with >>> basemap, >>> but requires a separate ./configure; make ;make install step befor

[Matplotlib-users] location of from pylab import * effects Tk widgets keyword=text

2007-11-26 Thread Michael Frauens
Wasn't sure where to post this so I'll keep it brief (and I have tried to check forums, FAQ and guides) I'm a relative noob but have a Tk based GUI running properly and have used Matplotlib successfully in two separate implementations of code. When I try to combine my GUI code with my matplotli

Re: [Matplotlib-users] os x leopard build step-by-step

2007-11-26 Thread John Hunter
On Nov 25, 2007 10:24 PM, Jeremy Conlin <[EMAIL PROTECTED]> wrote: > Thanks for posting these instructions. Forgive me if this has already been > hashed out in previous emails, but do the instructions for iPython resolve > the readline issues in Leopard? I thought this was a problem that affected

Re: [Matplotlib-users] ANN: basemap toolkit version 0.9.7 released

2007-11-26 Thread Jeff Whitaker
Vincent Schut wrote: > Jeff Whitaker wrote: > > >> There is an extra dependency on the GEOS (Geometry Engine) library >> (http://geos.refractions.net). The source code is included with basemap, >> but requires a separate ./configure; make ;make install step before running >> setup.py. Using th

Re: [Matplotlib-users] viewing my data correctly

2007-11-26 Thread Michael Droettboom
You can provide mesh coordinates to the pcolor command: X and Y, if given, specify the (x,y) coordinates of the colored quadrilaterals; the quadrilateral for C[i,j] has corners at (X[i,j],Y[i,j]), (X[i,j+1],Y[i,j+1]), (X[i+1,j],Y[i+1,j]), (X[i+1,j+1],Y[i+1,j+1]). Ideally the d

Re: [Matplotlib-users] ANN: basemap toolkit version 0.9.7 released

2007-11-26 Thread Vincent Schut
Jeff Whitaker wrote: > > There is an extra dependency on the GEOS (Geometry Engine) library > (http://geos.refractions.net). The source code is included with basemap, > but requires a separate ./configure; make ;make install step before running > setup.py. Using the GEOS library speeds up the c