[Matplotlib-users] Slider and Animation

2012-01-09 Thread bhargav vaidya
Hello All, I have two questions regarding the matplotlib Slider and animation. Question 1: How to create an image along with a Slider axes, such that the Slider values changes with time? Here is the example structure of the code I am trying but unsuccessful to have an animated Slider that c

[Matplotlib-users] using solid colours in surface plots

2012-01-09 Thread Benjamin Root
On Monday, January 9, 2012, Ethan Gutmann wrote: > Along these lines, it looks to me like plot_surface is not shading when I would expect it to (maybe I just have the wrong expectations?) > > I would expect the following to create a surface with colors from the colormap but shading from a lightsou

Re: [Matplotlib-users] using solid colours in surface plots

2012-01-09 Thread Ethan Gutmann
Along these lines, it looks to me like plot_surface is not shading when I would expect it to (maybe I just have the wrong expectations?) I would expect the following to create a surface with colors from the colormap but shading from a lightsource. surf = ax.plot_surface(X, Y, Z, rs

Re: [Matplotlib-users] using solid colours in surface plots

2012-01-09 Thread Zoltán Vörös
On 01/09/2012 05:46 PM, Benjamin Root wrote: > When we said that GTK is not supported, (1) is not an official > decision, I think, (2) we mean the pure GTK *backend*. We fully > support the GTKAgg backend, which is superior to the GTK backend in > every way. Please try v1.1.0 before continui

Re: [Matplotlib-users] using solid colours in surface plots

2012-01-09 Thread Benjamin Root
2012/1/9 Zoltán Vörös > > On 01/09/2012 05:30 PM, Benjamin Root wrote: > > The problem is that the faces themselves are transparent. But if I set > shade to False, it becomes solid, so that must be the solution. > >> >> > What version of mpl are you using? For me (on master) I never get > transp

Re: [Matplotlib-users] using solid colours in surface plots

2012-01-09 Thread Benjamin Root
2012/1/9 Zoltán Vörös > Thanks for the reply! > > surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, facecolors=colors, >> linewidth=0.0, antialiased=True) >> > > Is the issue that you have transparent lines between the faces? Set the > "shade" kwarg to True and the "antialiased" k

Re: [Matplotlib-users] using solid colours in surface plots

2012-01-09 Thread Zoltán Vörös
Thanks for the reply! surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, facecolors=colors, linewidth=0.0, antialiased=True) Is the issue that you have transparent lines between the faces? Set the "shade" kwarg to True and the "antialiased" kwarg to False. The problem

Re: [Matplotlib-users] using solid colours in surface plots

2012-01-09 Thread Benjamin Root
2012/1/8 Zoltán Vörös > colors = np.empty(X.shape, tuple) > for y in range(ylen): > for x in range(xlen): > colors[x, y] = (0, 0, 1, 1) > > surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, facecolors=colors, > linewidth=0.0, antialiased=True) > Is the issue that you have

Re: [Matplotlib-users] animation problems

2012-01-09 Thread Ryan May
On Mon, Jan 9, 2012 at 5:28 AM, wrote: > I just installed matplotlib 1.1.0.   When I try the animation examples from > http://matplotlib.sourceforge.net/examples/animation/index.html, they just > flash up a window for a fraction of a second, and then terminate with no > message (animate_decay.

[Matplotlib-users] animation problems

2012-01-09 Thread keith.briggs
I just installed matplotlib 1.1.0. When I try the animation examples from http://matplotlib.sourceforge.net/examples/animation/index.html, they just flash up a window for a fraction of a second, and then terminate with no message (animate_decay.py, strip_chart_demo.py, etc).Is this what th

Re: [Matplotlib-users] cycling mechanism

2012-01-09 Thread Georg Brandl
On 01/05/2012 05:58 PM, Benjamin Root wrote: > > > On Thu, Jan 5, 2012 at 10:40 AM, Benjamin Root > wrote: > > > At the very least, it would help in compartmentallizing all the > possible > drawing attributes that are common across all artists. Current