TypeError from matplotlib Button instantiation
<p>I'm getting a mysterious error when I try to create a Matplotlib button.</p>

<p>I have a class which has a number of Matplotlib axes as instance attributes. I am instantiating the button with the following call:</p>

<p><code>Button(self.energy_diagram, 'Show Attractors')</code></p>

<p>And I get the following error:</p>

<pre><code>Traceback (most recent call last):
  File "ocr.py", line 20, in &lt;module&gt;
    myNet.run_visualization(training_data, learning_data)
  File  "/home/daniel/Documents/coding/visuals.py",    line 93, in run_visualization
    self._plot_energy()
  File     "/home/daniel/Documents/coding/visuals.py", line 235, in _plot_energy
    Button(self.energy_diagram, 'Show Attractors')
  File "/usr/local/lib/python3.4/dist-packages/matplotlib/widgets.py",     line 191, in __init__
    transform=ax.transAxes)
TypeError: text() missing 1 required positional argument: 's'
</code></pre>

<p>Interestingly, the Button works if I add it to other axes within my figure, and the <code>self.energy_diagram</code> axis is the only one that is 3d, so I'm wondering if that has something to do with it.</p>

<p>Any help would be much appreciated!</p>