[Matplotlib-users] how to generate one plot per key press?

2009-08-22 Thread Dr. Phillip M. Feldman
The following trivial program is supposed to generate one plot per key press until the user presses 'q'. Instead, nothing is displayed until the user presses 'q'. Any suggestions will be appreciated. from os import sys from matplotlib import * from numpy.random import rand while True: z= r

Re: [Matplotlib-users] help needed in plotting curved elements

2009-08-22 Thread Jae-Joon Lee
On Thu, Aug 20, 2009 at 2:01 AM, Sameer Regmi wrote: > We tried the method 1 but the result was a garbled mesh Please describe what you did and why the result is wrong. The method 1 with quadratic bezier curve should be most straight-forward and easy thing to do. Calculating the control points is

Re: [Matplotlib-users] Create axes instance position relative to another axes instance position??

2009-08-22 Thread Jae-Joon Lee
What you need is to adjust the axes position of the colorbar at the drawing time (because the axes position of the contour plot is adjusted only during the drawing time). You may do this by properly setting the axe_locator property of the axes. If you're using mpl 0.99, axes_grid toolkit may be he

[Matplotlib-users] mplot3D and QT4

2009-08-22 Thread German Ocampo
I'm new in Python and QT, Do you know where I could find an example of a mplot3d plot embebed in QT4? Thanks for your help german -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simp

Re: [Matplotlib-users] matplotlib-0.99 font incompatibility?

2009-08-22 Thread per freem
i figured out what i did wrong and so am writing it here in case it helps others. the basic issue is that the .ttf font was missing in the new matplotlib directory. to discover this, i ran python with --verbose-debug as suggested in previous threads by others. then i copied my version of Helvetic

[Matplotlib-users] matplotlib-0.99 font incompatibility?

2009-08-22 Thread per freem
Hi all, the following code used to work for me in matplotlib-0.98 to make a simple scatter plot and change the font from the default font to Helvetica (I am using mac os x). import matplotlib matplotlib.use('PDF') import matplotlib.pyplot as plt from matplotlib import rc rc('font',**{'family':'sa

[Matplotlib-users] can't picker once pan or zoom chosen

2009-08-22 Thread marc desmarais
I created a simple scatter plot and a service routine to print out the coordinates of the points I pick with the cursor (based on the demo). It works until I select the pan or zoom cursor. After I zoom or pan,  I can no longer get back to the normal cursor which allows me to "pick" a circle. Eve

Re: [Matplotlib-users] per-element marker - possible? how to?

2009-08-22 Thread John Owens
Jouni K. Seppänen writes: > John Owens writes: > > > plot([1,2,3], [1,4,9], markerlist=['A', 'B', 'C']) > > > > and have it draw the first point with a rendered > > letter 'A', the second with a 'B', and the third with > > a 'C'. > > You could do > > text(1,1,'A') > text(2,4,'B') > text(3,9,'

Re: [Matplotlib-users] what's a "patch" for?

2009-08-22 Thread Darren Dale
On Sat, Aug 22, 2009 at 11:07 AM, marc desmarais wrote: > what's a "patch" for? > > At this address: > > http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.patches.Patch > > I found the following description of a "patch" > > "A patch is a 2D thingy with a face color and an edge color.

[Matplotlib-users] what's a "patch" for?

2009-08-22 Thread marc desmarais
what's a "patch" for? At this address: http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.patches.Patch I found the following description of a "patch" "A patch is a 2D thingy with a face color and an edge color." Could someone expand?  Why use it? When to use it? What does it loo

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-22 Thread Alan G Isaac
On 8/22/2009 2:42 AM Michiel de Hoon apparently wrote: > Does anybody know why the show._needmain stuff is needed in the show() > function in backend_tkagg.py?... > If I remove the show._needmain stuff ... > then the function still seems to work fine, and multiple show()s also works. Define "work

Re: [Matplotlib-users] Percentage in pie in e.g. white instead of black

2009-08-22 Thread Werner F. Bruhin
Werner F. Bruhin wrote: > I would like to have the percentage values shown in white instead of in > black within a pie chart. > The following code is doing what I want, but it does not feel right. myPie = axes.pie(values, labels=labels, autopct=u'%1.0f%%', shadow=False, colors=colors