title: Concatenating numpy arrays of different shapes
body: <p>I have several <strong>N</strong>-dimensional arrays of different shapes and want to combine them into a new <strong>(N+1)</strong>-dimensional array, where the new axis has a length corresponding to the number of initial N-d arrays. </p>
  
  <p><a href="https://stackoverflow.com/questions/8898471/concatenate-two-numpy-arrays-in-the-4th-dimension">This answer is sufficient</a> if the original arrays are all the same shape; however, it does not work if they have different shapes. </p>
  
  <p>I don't really want to reshape the arrays to a congruent size and fill with empty elements due to the subsequent analysis I need to perform on the final array. </p>
  
  <p>Specifically, I have four 4D arrays. One of the things I want to do with the resulting 5D array is plot parts of the four arrays on the same matplotlib figure. Obviously I could plot each one separately, however soon I will have more than four 4D arrays and am looking for a dynamic solution.</p>