Re: [Matplotlib-users] Drawing filled circles (discs)

2008-06-16 Thread sidimok
> Or are you effectively doing a scatter plot? Could you use scatter? > > Eric > Yes, I've already tried doing the trick with a scatter plot, but since the filling colors correspond to a "physical quantity" and the radius of the scatters are the "real" circle radius, using RegularPolygons is

Re: [Matplotlib-users] Drawing filled circles (discs)

2008-06-16 Thread Eric Firing
John Hunter wrote: > On Sun, Jun 15, 2008 at 7:48 AM, sidimok <[EMAIL PROTECTED]> wrote: > >> The code above was working for me as a charm, but since the new matlplotlib >> flavor 0.98, I'm getting this error message: >> AttributeError: 'CirclePolygon' object has no attribute 'get_verts' << >

Re: [Matplotlib-users] Drawing filled circles (discs)

2008-06-16 Thread John Hunter
On Sun, Jun 15, 2008 at 7:48 AM, sidimok <[EMAIL PROTECTED]> wrote: > The code above was working for me as a charm, but since the new matlplotlib > flavor 0.98, I'm getting this error message: > >>> AttributeError: 'CirclePolygon' object has no attribute 'get_verts' << > > Any idea? The new patch

[Matplotlib-users] Radar / Spider Chars

2008-06-16 Thread Curtis Jensen
There was recently a post on Radar/Spider plotting (http://sourceforge.net/mailarchive/message.php?msg_id=4845303A.9050204%40epcc.ed.ac.uk). I too am interested in creating Radar plots with matplot. Is there a simple way to do this? Thanks, Curtis

Re: [Matplotlib-users] problem with imshow and ps+xpdf backend

2008-06-16 Thread Lance Simms
I realize this is way outdated now, but I came across the same problem. My imshow command would display fine in the xwindow and all plotting devices except for .ps. Taking the advice you guys gave, I tracked it down to pdftops in the backends.ps.py file. I changed the command from: command = '

[Matplotlib-users] Circle Collection

2008-06-16 Thread sidimok
Hi everyone, The code below was working for me as a charm, but since the new matlplotlib flavor 0.98, I'm getting this error message: >> AttributeError: 'CirclePolygon' object has no attribute 'get_verts' << Any idea? - - - - - - - - - - - - - - - - - - - import matplotlib from matplotli

Re: [Matplotlib-users] Drawing filled circles (discs)

2008-06-16 Thread sidimok
import matplotlib from matplotlib.patches import CirclePolygon from matplotlib.collections import PolyCollection import pylab fig=pylab.figure() ax=fig.add_subplot(111) resolution = 50 # the number of vertices N = 20 x = pylab.rand(N) y = pylab.rand(N) radii = 0.1*pylab.rand(N

Re: [Matplotlib-users] Version 0.98 behavior change - scatter

2008-06-16 Thread Manuel Metz
Eric Firing wrote: > Michael Droettboom wrote: >> As a quick-fix workaround, you can do: >> >> from matplotlib.pyplot import * >> p = scatter([0,1,2,3], [4,5,6,7], c ='k', alpha=0, edgecolor = 'k') >> p._alpha = 1.0 >> p.set_edgecolor('k') >> show() >> >> But the deeper question is for the rest of

Re: [Matplotlib-users] plotting speed

2008-06-16 Thread Christopher Barker
Michael Droettboom wrote: > Thanks. I had seen these threads already -- I was hoping you had some > more. sorry :-( > It also is different from what I was talking about in the sense of > clipping. The effect I see is that when an explicit clipping rectangle > is applied (e.g. the axes), spee

Re: [Matplotlib-users] Version 0.98 behavior change - scatter

2008-06-16 Thread Eric Firing
Michael Droettboom wrote: > As a quick-fix workaround, you can do: > > from matplotlib.pyplot import * > p = scatter([0,1,2,3], [4,5,6,7], c ='k', alpha=0, edgecolor = 'k') > p._alpha = 1.0 > p.set_edgecolor('k') > show() > > But the deeper question is for the rest of the list is... what's the >

Re: [Matplotlib-users] Version 0.98 behavior change - scatter

2008-06-16 Thread Michael Droettboom
As a quick-fix workaround, you can do: from matplotlib.pyplot import * p = scatter([0,1,2,3], [4,5,6,7], c ='k', alpha=0, edgecolor = 'k') p._alpha = 1.0 p.set_edgecolor('k') show() But the deeper question is for the rest of the list is... what's the correct behavior? Should we just revert to w

Re: [Matplotlib-users] plotting speed

2008-06-16 Thread Michael Droettboom
Christopher Barker wrote: > Michael Droettboom wrote: > >> Christopher Barker wrote: >> > A number of threads on the wxPython list. Here's a couple: > > http://aspn.activestate.com/ASPN/Mail/Message/wxpython-users/3519845 > Thanks. I had seen these threads already -- I was hoping you ha

Re: [Matplotlib-users] plotting speed

2008-06-16 Thread Christopher Barker
Michael Droettboom wrote: > Christopher Barker wrote: >> For what it's worth, apparently you can speed up GraphicsContext code >> substantially if you use it right -- > Can you be more specific about this no. I haven't done much with it myself. > or provide a reference? A number of threads

Re: [Matplotlib-users] plotting speed

2008-06-16 Thread Michael Droettboom
Christopher Barker wrote: > Michael Droettboom wrote: > >> If you're using 0.98.x with the wx backend, things are *very* slow. The >> performance of wx.GraphicsContext (that is uses under the hood) is >> terrible. >> > > For what it's worth, apparently you can speed up GraphicsContext c

Re: [Matplotlib-users] plotting speed

2008-06-16 Thread Christopher Barker
Michael Droettboom wrote: > If you're using 0.98.x with the wx backend, things are *very* slow. The > performance of wx.GraphicsContext (that is uses under the hood) is > terrible. For what it's worth, apparently you can speed up GraphicsContext code substantially if you use it right -- i.e.

[Matplotlib-users] Version 0.98 behavior change - scatter

2008-06-16 Thread S Murthy Kambhampaty
There seems to have been a change to the behavior of the 'alpha' keyword option to scatter(): where previously alpha only affected the facecolor, and the edgecolor always had an alpha of 1.0, alpha now seems to affect both facecolor and edgecolor. Tested with 0.93.1 and 0.98. Tested with new A

Re: [Matplotlib-users] ticks label to the right side

2008-06-16 Thread Stan West
Quoting Fabrice Silva: > Using version 0.91.2, I do not manage to push ticks labels to > the right side of the axis, keeping ticks lines on both > sides. How can I do it ? One solution is yax = gca().yaxis yax.set_ticks_position('right') # labels right side; removes left ticks

Re: [Matplotlib-users] Newbie trying to install matplotlib on OS10.5

2008-06-16 Thread John Hunter
On Sun, Jun 15, 2008 at 3:50 PM, Dan Murphy <[EMAIL PROTECTED]> wrote: > Moving (finally) to the matplotlib step. I had previously downloaded > wxPython2.8. My ubuntu-knowledgeable son helped me with the configure and > make install part or your instructions and everything now works fine: numpy > w

Re: [Matplotlib-users] plotting speed

2008-06-16 Thread Michael Droettboom
Are you using the wxAgg backend or just wx? Which version of matplotlib? If you're using 0.98.x with the wx backend, things are *very* slow. The performance of wx.GraphicsContext (that is uses under the hood) is terrible. You may want to try switching to the WxAgg backend, which, among other

[Matplotlib-users] WXAgg Backend Errors on Exit

2008-06-16 Thread A. S. Budden
Dear all, I have been using the WXAgg backend with matplotlib and have been coming across an occasional error. Unfortunately, it is a little difficult to trap as it doesn't happen every time! Running on Windows with python 2.5.2, matplotlib 0.98.0 (installed from the binary) and wx version 2.8.7

[Matplotlib-users] plotting speed

2008-06-16 Thread Paul Hartley
I have developed a wxPython GUI that uses matplotlib to plot line traces (using plot()). If I were to plot about 250,000 data points, it takes nearly 1 minute to load the plot (using a intel dual core), although once this plot is loaded, it is easy to interact with it - changing the x/y scale & sc