[Matplotlib-users] Smooth animations

2013-07-03 Thread v0idnull
I am receiving a number from a server every two seconds. I would like to plot this number.out over time for the past say... 30 polls. Would it be possible to use... Anything, to produce a smooth animation of the plot line getting drawn? As it stands now the animation is well... Quite choppy. ;)

[Matplotlib-users] v.0.99.1.1 DeprecationWarning: Use the new widget gtk.Tooltip() self.tooltips = gtk.Tooltips()

2013-07-03 Thread David Jonathan Pryce Morris
I am new to python and when using Matplotlib 0.99.1.1 [Scientific Linux 6.3, Python 2.6] to plot I get the following error: /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py:621: DeprecationWarning: Use the new widget gtk.Tooltip self.tooltips = gtk.Tooltips() This is when

Re: [Matplotlib-users] Reports from SciPy 2013

2013-07-03 Thread Damon McDougall
On Tue, Jul 2, 2013 at 11:57 PM, Nelle Varoquaux wrote: > On 2 July 2013 16:33, Anthony Scopatz wrote: > > > > On Tue, Jul 2, 2013 at 9:04 AM, Jason Grout > > > wrote: > >> > >> On 7/1/13 9:33 AM, Michael Droettboom wrote: > >> > SciPy 2013 was a great success. I didn't get good headcount at th

Re: [Matplotlib-users] xlabel cropped

2013-07-03 Thread Benjamin Root
Not a bother. This is a fairly common problem because matplotlib, by design, does not handle layouts for you. If you are looking for an automated way of handling this, there is plt.tight_layout(), which is a feature that was added in v1.2, IIRC, that tries adjusting certain spacing and size parame

Re: [Matplotlib-users] xlabel cropped

2013-07-03 Thread Florian Lindner
Am Mittwoch, 3. Juli 2013, 20:02:30 schrieb Florian Lindner: > Hello! > > I have that snipped to create a plot: > > import matplotlib.pyplot as plt > size = (6.1, 3.5) > fig = plt.figure(figsize=size) > plt.xlabel("$x/l_F$") > > it's being saved as eps for latex. At the size given the "F" from l

[Matplotlib-users] xlabel cropped

2013-07-03 Thread Florian Lindner
Hello! I have that snipped to create a plot: import matplotlib.pyplot as plt size = (6.1, 3.5) fig = plt.figure(figsize=size) plt.xlabel("$x/l_F$") it's being saved as eps for latex. At the size given the "F" from l_F is truncated just a little bit. It works well if I change y-size to 3.6 but t

Re: [Matplotlib-users] quickly return colorbar ticks?

2013-07-03 Thread Benjamin Root
On Wed, Jul 3, 2013 at 3:13 AM, ChaoYue wrote: > Thanks Ben. I tried but still confused. > > In [8]: fig,ax = plt.subplots() > > In [9]: ax.plot(range(100)) > Out[9]: [] > > In [10]: ax.get_xticks() > Out[10]: array([ 0., 20., 40., 60., 80., 100.]) > > In [11]: ax.get_yticks() > Out[11

Re: [Matplotlib-users] quickly return colorbar ticks?

2013-07-03 Thread ChaoYue
Thanks Ben. I tried but still confused. In [8]: fig,ax = plt.subplots() In [9]: ax.plot(range(100)) Out[9]: [] In [10]: ax.get_xticks() Out[10]: array([ 0., 20., 40., 60., 80., 100.]) In [11]: ax.get_yticks() Out[11]: array([ 0., 20., 40., 60., 80., 100.]) In [12]: draw()

Re: [Matplotlib-users] how to make a colorbar starting with a different color?

2013-07-03 Thread ChaoYue
Thanks Ben. extendrect keyword is in mat 1.3, I didn't try this but I tried set_under and extend='min' with mat 1.2 and it works very nice. cheers, Chao On Tue, Jul 2, 2013 at 4:14 PM, Benjamin Root-2 [via matplotlib] < ml-node+s1069221n41364...@n5.nabble.com> wrote: > There is the "set_over" a