Re: [Numpy-discussion] Numpy logo in VTK

2012-06-27 Thread klo uo
Damn it, N is inverted and I noticed it now after posting. Sorry about that, here is correct one: from numpy import arange, ones import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = fig.add_subplot(111,

Re: [Numpy-discussion] Numpy logo in VTK

2012-06-27 Thread klo uo
I continued in this mpl trip, with small animation sequence: # animation ax.view_init(90,-90) plt.ion() plt.draw() plt.show() for l in arange(25): ax.set_xlim3d(1.5-.1*l,2.5+.1*l) ax.set_ylim3d(1.5-.1*l,2.5+.1*l) ax.view_init(90-3*l, -90+l)

Re: [Numpy-discussion] Numpy logo in VTK

2012-06-27 Thread Brennan Williams
You're now reminding me of the old spinning SGI logo http://www.youtube.com/watch?v=Nqf6TjE49N8 Brennan On 27/06/2012 10:40 a.m., klo uo wrote: I continued in this mpl trip, with small animation sequence: # animation ax.view_init(90,-90) plt.ion()

Re: [Numpy-discussion] Numpy logo in VTK

2012-06-27 Thread klo uo
Yeah, camera is in cliche, I know :D Something more original can be done, perhaps some idea of transforming grid in 2D (in Z plane) for opening sequence and then emerging latices in some analogy with numpy arrays, finishing with complete figure, but I guess not in matplotlib ;)

Re: [Numpy-discussion] Numpy logo in VTK

2012-06-27 Thread Virgil Stokes
On 27-Jun-2012 11:40, klo uo wrote: I continued in this mpl trip, with small animation sequence: # animation ax.view_init(90,-90) plt.ion() plt.draw() plt.show() for l in arange(25): ax.set_xlim3d(1.5-.1*l,2.5+.1*l)

Re: [Numpy-discussion] Numpy logo in VTK

2012-06-27 Thread Travis Oliphant
This is cool. It would be nice to put these things somewhere where they could be available for reference. -Travis On Jun 27, 2012, at 10:20 AM, Virgil Stokes wrote: On 27-Jun-2012 11:40, klo uo wrote: I continued in this mpl trip, with small animation sequence:

Re: [Numpy-discussion] Numpy logo in VTK

2012-06-27 Thread Virgil Stokes
On 27-Jun-2012 08:04, klo uo wrote: from numpy import arange, ones import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = fig.add_subplot(111, projection='3d') o = ones(4) r = arange(4) # planes: for z in arange(3)+1: ax.bar(r, o*4, zs=z,

Re: [Numpy-discussion] Numpy logo in VTK

2012-06-27 Thread klo uo
In the first version this line: ax.bar3d([i], [0], [i], [.9], [.1], [.9], color='y', linewidth=.1) is responsible for diagonal in N, and it is inverted. In the second version you quoted this is corrected with: ax.bar3d([3-i], [0], [i], [.9], [.1], [.9], color='y', linewidth=.1) Also

Re: [Numpy-discussion] Numpy logo in VTK

2012-06-26 Thread Anthony Scopatz
This is awesome! On Mon, Jun 25, 2012 at 5:27 AM, klo uo klo...@gmail.com wrote: I was reading mayavi documentation and one of the examples (tvtk.ImageData) resembled Numpy logo grid. I added barchart and tweaked a bit colormap and thought to post it for fun:

Re: [Numpy-discussion] Numpy logo in VTK

2012-06-26 Thread klo uo
Heh, thanks :) It's free interpretation made from quick idea then immediately shared. Original logo can be made exact I guess with interlaced planes and shallower bars or similar... On Tue, Jun 26, 2012 at 8:19 AM, Anthony Scopatz wrote: This is awesome!

Re: [Numpy-discussion] Numpy logo in VTK

2012-06-26 Thread Travis Oliphant
It would be really awesome to have a script like this to generate the logo. That's pretty amazing. Would you be able to tweak it up a bit and then we could take a poll here? Perhaps we change the logo to a variation of what your script produces. Can you export a PNG? -Travis On Jun