title: Table in Matplotlib, can't get two columns?
body: <p>I'm struggling with tables for matplotlib (blume). The table is for an automation project that will produce 22 different maps. The code below produce a table with 49 rows. Some figures will only have 6 rows. When the number of rows exceeds 25 I would like to use two columns.</p>
  <pre><code>import pandas as pd
  import matplotlib.pyplot as plt
  from blume.table import table
  
  # Dataframe
  
  df=pd.DataFrame({'nr': [ 1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17,
         18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
         35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49],
               'KnNamn': ['Härryda', 'Partille', 'Öckerö', 'Stenungsund', 'Tjörn', 'Orust',
         'Sotenäs', 'Munkedal', 'Tanum', 'Dals-Ed', 'Färgelanda', 'Ale',
         'Lerum', 'Vårgårda', 'Bollebygd', 'Grästorp', 'Essunga',
         'Karlsborg', 'Gullspång', 'Tranemo', 'Bengtsfors', 'Mellerud',
         'Lilla Edet', 'Mark', 'Svenljunga', 'Herrljunga', 'Vara', 'Götene',
         'Tibro', 'Töreboda', 'Göteborg', 'Mölndal', 'Kungälv', 'Lysekil',
         'Uddevalla', 'Strömstad', 'Vänersborg', 'Trollhättan', 'Alingsås',
         'Borås', 'Ulricehamn', 'Åmål', 'Mariestad', 'Lidköping', 'Skara',
         'Skövde', 'Hjo', 'Tidaholm', 'Falköping'],
               'rel': [0.03650425, 0.05022105, 0.03009109, 0.03966735, 0.02793296,
         0.03690838, 0.04757161, 0.05607283, 0.0546372 , 0.05452821,
         0.06640368, 0.04252673, 0.03677577, 0.05385784, 0.0407173 ,
         0.04024881, 0.05613226, 0.04476127, 0.08543165, 0.04070175,
         0.09281077, 0.08711656, 0.06111578, 0.04564958, 0.05058988,
         0.04618078, 0.04640402, 0.04826498, 0.08514253, 0.07799246,
         0.07829886, 0.04249149, 0.03909206, 0.06835601, 0.08027622,
         0.07087295, 0.09013876, 0.1040369 , 0.05004451, 0.06584845,
         0.04338739, 0.10570863, 0.0553109 , 0.05024871, 0.06531729,
         0.05565605, 0.05041816, 0.04885198, 0.07954831]})
  
  # Table
  fig,ax = plt.subplots(1, figsize=(10, 7))
      
  val =[]
  
  ax.axis('off')
  
  for i, j, k in zip(df.nr, df.KnNamn, df.rel):
      k = k*100
      k = round(k,2)
      k= (str(k) + ' %')
      temp=str(i)+'. ' +str(j)+': ' + str(k)
      val.append(temp)
      
  val=[[el] for el in val]
  #val=val[0] + val[1]
  
  tab=table(ax,cellText=val, 
                  #rowLabels=row_lab, 
                  colLabels=['Relativ arbetslöshet'], loc='left', colWidths=[0.3], cellLoc='left')
  
  plt.show()
  </code></pre>
  <p>As I understands it, if I want a table with two columns, my val object should be structured in a different way. In the case above, val is a nested list with 49 lists inside. I need to merge lists, I figure. I tried this pairwise for loop but that didn't work with range?</p>
  <p>I'm sure there is a simple  solution to this problem I have. Help would be much appreciated.</p>
  <pre><code>for i, j in zip(range(len(val)), range(len(val))[1:] + range(len(val))[:1]):
   print(i, j)
      
  </code></pre>