# [Numpy-discussion] Numpy logo in VTK

klo uo klonuo at gmail.com
Wed Jun 27 22:27:42 EDT 2012

```In the first version this line:

ax.bar3d([i], , [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], , [i], [.9], [.1], [.9], color='y', linewidth=.1)

Also snippet for clearing axis decorations, (grid, ticks, lines...) is
posted separately besides first version.

all this together plus anim sequence

On Wed, Jun 27, 2012 at 6:34 PM, Virgil Stokes <vs at it.uu.se> wrote:
> 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()
>>
>> o = ones(4)
>> r = arange(4)
>>
>> # planes:
>> for z in arange(3)+1:
>>     ax.bar(r, o*4, zs=z, zdir='x', alpha=.05, width=1)
>>     ax.bar(r, o*4, zs=z, zdir='y', alpha=.05, width=1)
>>     ax.bar(r, o*4, zs=z, zdir='z', alpha=.05, width=1)
>>
>> # N
>> for i in [1, 2]:
>>      ax.bar3d([3-i], , [i], [.9], [.1], [.9], color='y', linewidth=.1)
>>      ax.bar3d(o+(i*(-1)**i), o-1, r, o-.1, o-.9, o-.1, color='y', linewidth=.1)
>>
>> # cage
>> ax.bar3d(, , , , , , alpha=.05, color='w', linewidth=0)
>>
>> plt.show()
>> # plt.savefig('numpy.png')
> Umh...
> The first version that you posted looks ok on my screen (N is not inverted). And
> this version shows no difference in the "N"; but, it does show tick marks
> labeled with numerical values.
>
> --V
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

```