Re: [Matplotlib-users] (no subject)

2012-01-28 Thread Paul Ivanov
Paul Hobson, on 2012-01-28 23:21, wrote: > There is undoubtedly a more efficient way to do this, but give this a shot: > > import numpy as np > import matplotlib.pyplot as plt > > x = np.arange(0, 10.5, 0.5) > y = -3.0*x + 0.5*x**2 > > color_list = ['FireBrick', 'Orange', 'DarkGreen', 'DarkBlue

Re: [Matplotlib-users] (no subject)

2012-01-28 Thread Paul Hobson
There is undoubtedly a more efficient way to do this, but give this a shot: import numpy as np import matplotlib.pyplot as plt x = np.arange(0, 10.5, 0.5) y = -3.0*x + 0.5*x**2 color_list = ['FireBrick', 'Orange', 'DarkGreen', 'DarkBlue', 'Indigo'] limits = np.arange(0, 11, 2) fig, ax1 = plt.sub

Re: [Matplotlib-users] Events

2012-01-28 Thread Benjamin Root
On Sat, Jan 28, 2012 at 4:10 PM, Jerzy Karczmarczuk < jerzy.karczmarc...@unicaen.fr> wrote: > Ben Root, about my example in which an infinite callback loop overflows : > > So, where is your terminating condition? Of course it will continuously > call itself if you have nothing to stop it. Prote

Re: [Matplotlib-users] Events

2012-01-28 Thread Benjamin Root
On Sat, Jan 28, 2012 at 10:31 AM, Jerzy Karczmarczuk < jerzy.karczmarc...@unicaen.fr> wrote: > Benjamin Root about my miserable event problem : > > Still not sure why my suggestion would not work: > > > http://matplotlib.sourceforge.net/api/cbook_api.html#matplotlib.cbook.CallbackRegistry > > > I

Re: [Matplotlib-users] Events

2012-01-28 Thread Jerzy Karczmarczuk
Benjamin Root about my miserable event problem : Still not sure why my suggestion would not work: http://matplotlib.sourceforge.net/api/cbook_api.html#matplotlib.cbook.CallbackRegistry I thought I told you. Probably I am doing something utterly false, but my distilled problem is that*I am gen