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

2007-09-19 Thread Jouni K . Seppänen
sidimok [EMAIL PROTECTED] writes: Well, let's take the one you've proposed the last time. How than can i put a colorbar beside the plot? Add in the imports from matplotlib.colorbar import ColorbarBase, make_axes and change the myscatter function to def myscatter(ax, colormap, x, y, radii,

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

2007-09-19 Thread Mika, David P (GE, Research)
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 import matplotlib from matplotlib.patches import CirclePolygon

Re: [Matplotlib-users] plot different columns

2007-09-19 Thread Fabian Braennstroem
Hi Jouni, Jouni K. Seppänen schrieb am 09/16/2007 05:51 PM: Fabian Braennstroem [EMAIL PROTECTED] writes: Lets say I have to columns, the I could use in a script: res=plot(array_mapped[:,0],array_mapped[:,1], 'b', array_mapped[:,0],array_mapped[:,2], 'g') The next

Re: [Matplotlib-users] py2exe with pylab

2007-09-19 Thread Emmanuel
With the setup you provided. I could get py2exe to make an exe of the simple_plot.py from simple_plot_wxagg of py2exe examples. When I tried this on another python prog, I remarked that if I comment the following line : import matplotlib.backends.backend_wxagg the exe created by py2exe crash and

[Matplotlib-users] Capturing keydown events

2007-09-19 Thread Orest Kozyar
I'm embedding a FigureCanvasWxAgg into a wx.Panel and binding key events to it: class MyPanel(wx.Panel) def __init__(self, parent, file, id=-1): wx.Panel.__init__(self, parent, style=wx.WANTS_CHARS | wx.NO_FULL_REPAINT_ON_RESIZE) #Set up the canvas

[Matplotlib-users] Starting troubles with matplotlib.

2007-09-19 Thread Shishir Ramam
Hi, I am trying to use the simple test.py program to draw a stacked bar graph. My intention is eventually to shrink this into a sparkline. Both the sample program and the image output are attached. What I cannot understand is why the vertical bars don't align to the y-axis 0 point. Any help is

[Matplotlib-users] how to control space between ylabel and yticklabel?

2007-09-19 Thread Cizhong Jiang
Hi, all, I have a long ylabel that is displayed in two lines. Thus, the ylabel overlaps with yticklabels. Does anyone know how to control the space between ylabel and yticklabel? Thank you very much. Best, cj - This