title: 3D-plotting nested dictionaries made up of different length arrays
body: <p>I have a nested dictionary that looks like this:</p>
  
  <pre><code>dictionary = {time: {pixels: {intensity}}}
  
  len(time) = 65
  
  len(pixels) = 6/time
  
  len(intensity) = 6/pixel
  </code></pre>
  
  <p>Just to be clear, for 1 time value --> [1,2,3,4,5,6] pixel values --> sub values for each of the pixel values are 6 intensity values.</p>
  
  <p>Example:</p>
  
  <pre><code>dictionary = {time1 : {1: array([i11,i12,i13,i14,i15,i16]), 2: array([i21,i22,i23,i24,i25,i26]), 3: array([i31,i32,i33,i34,i35,i36]), 4: array([i41,i42,i43,i44,i45]), 5: array([i51,i52,i53,i54,i55,i56]), 6: array([i61,i62,i63,i64,i65,i66])}}
  </code></pre>
  
  <p>My question is,
  how do I plot these values (3D plot) with time in the z axis and intensity values and pixel values (since both are length 6) on y and x values respectively?</p>
  
  <p>The following is what I have tried so far and have been unsuccessful:</p>
  
  <pre><code>   x = []
     y = []
     z = []
     for i in dictionary:
        z1 = i
        z.append(z1)
        x1 = dictionary[i].keys()
        x.append(x1)
        y1 = dictionary[i].values()
        y.append(y1)
  
     from mpl_toolkits.mplot3d import Axes3D
     fig = plt.figure()
     ax = Axes3D(fig)
     ax.plot(x, y, zs = 0, zdir='z', label='zs=0,zdir=z')
  </code></pre>