title: How to edit table data with interactive event in matplotlib
body: <p>A table is created in a figure. Now I want to edit the table after double click at the cell, adding, deleting or revising the data in this cell. Just like the edit function in Excel. My python version is 3.64. Codes are following:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  fig, ax = plt.subplots()
  
  # Hide axes
  ax.xaxis.set_visible(False)
  ax.yaxis.set_visible(False)
  
  # Table from Ed Smith answer
  clust_data = [[1,1,7]]
  collabel=("col 1", "col 2", "col 3")
  ax.table(cellText=clust_data,colLabels=collabel,loc='center')
  plt.show()
  </code></pre>