Re: [Matplotlib-users] Circle Collection

2008-06-17 Thread sidimok
Thank you very much indeed guys, you made my day. =) -- View this message in context: http://www.nabble.com/Circle-Collection-tp17866685p17913009.html Sent from the matplotlib - users mailing list archive at Nabble.com. -

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

[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] Update and replot data at a regular time rate

2007-10-10 Thread sidimok
>> I would venture a guess that the problem is how to update the plot. That's it! -- View this message in context: http://www.nabble.com/Update-and-replot-data-at-a-regular-time-rate-tf4600152.html#a13141806 Sent from the matplotlib - users mailing list archive at Nabble.com. --

[Matplotlib-users] Update and replot data at a regular time rate

2007-10-10 Thread sidimok
Hi everyone! I would write down an MPL script that loads a block data, generated on the fly (in a file) by another computing program, at a regular time rate, let's say every 30". The script may have an "exit button" to stop it, and it might proceed this way: 1. time = time_old 2. Load the "data"

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

2007-09-20 Thread sidimok
Mika, David P (GE, Research) wrote: > > How about this solution? I'm a complete newbe, but this seems to do the > trick. I didn't see a CircleCollection so I used CirclePolygon to > generate vertices for a circle; these I grab and toss into a > PolyCollection. Enjoy, Dave > > Hi all! Than

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

2007-09-19 Thread sidimok
Jouni K. Seppänen wrote: > > > It would help to give a complete example. ColorbarBase itself does not > create a colorbar but is useful for drawing a colorbar in existing axes. > > Well, let's take the one you've proposed the last time. How than can i put a colorbar beside the plot? #!/usr/

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

2007-09-19 Thread sidimok
Jouni K. Seppänen wrote: > > sidimok <[EMAIL PROTECTED]> writes: > >> I'm using matplotlib to draw (from matplotlib.Patches import Circle) >> filled >> circles (disks) from a formatted data file, and would give each disk a >> color relative to a

[Matplotlib-users] Drawing filled circles (discs)

2007-09-15 Thread sidimok
Hi all! I'm using matplotlib to draw (from matplotlib.Patches import Circle) filled circles (disks) from a formatted data file, and would give each disk a color relative to a variable, as done by the "scatter" function. Any idea how to handle this, please? Thank's. -- View this message in con