<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>

<p dir="auto">I plotted a 3D curve on Jupyter Notebook. I rotated the produced image using my mouse, and I wanted to use the Home button to reset it, because Home's comment says <em>Reset the original view</em>. However, after clicking Home button, there was nothing happened.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>

<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Paste your code here
#
#
%matplotlib notebook
# %matplotlib inline

import matplotlib.pyplot as plt
import numpy as np
from sklearn.linear_model import Ridge
from mpl_toolkits.mplot3d import Axes3D

fig = plt.figure()
ax = fig.gca(projection='3d')
# 如果不加这句话，图形就无法显示


model = Ridge(alpha=0.3)
model.fit([[0,0],[0,0],[1,1],[2,2]],[0,0.1,1,2])
print(model.coef_)
print(model.intercept_)

x = np.linspace(-10, 10, 1000)
y = np.linspace(-10, 10, 1000)
z = np.add(x, y)

ax.plot(x, y, z)
plt.show()"><pre class="notranslate"><span class="pl-c"># Paste your code here</span>
<span class="pl-c">#</span>
<span class="pl-c">#</span>
<span class="pl-c1">%</span><span class="pl-s1">matplotlib</span> <span class="pl-s1">notebook</span>
<span class="pl-c"># %matplotlib inline</span>

<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">linear_model</span> <span class="pl-k">import</span> <span class="pl-v">Ridge</span>
<span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">mplot3d</span> <span class="pl-k">import</span> <span class="pl-v">Axes3D</span>

<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">gca</span>(<span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)
<span class="pl-c"># 如果不加这句话，图形就无法显示</span>


<span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">Ridge</span>(<span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0.3</span>)
<span class="pl-s1">model</span>.<span class="pl-en">fit</span>([[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>],[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>],[<span class="pl-c1">1</span>,<span class="pl-c1">1</span>],[<span class="pl-c1">2</span>,<span class="pl-c1">2</span>]],[<span class="pl-c1">0</span>,<span class="pl-c1">0.1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>])
<span class="pl-en">print</span>(<span class="pl-s1">model</span>.<span class="pl-s1">coef_</span>)
<span class="pl-en">print</span>(<span class="pl-s1">model</span>.<span class="pl-s1">intercept_</span>)

<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">10</span>, <span class="pl-c1">10</span>, <span class="pl-c1">1000</span>)
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">10</span>, <span class="pl-c1">10</span>, <span class="pl-c1">1000</span>)
<span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">add</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>)

<span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">z</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto">(Please ignore the comment in Chinese, because I am a Chinese student)</p>
<p dir="auto"><strong>Actual outcome</strong></p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# If applicable, paste the console output here
#
#"><pre class="notranslate"><code class="notranslate"># If applicable, paste the console output here
#
#
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/27288110/69009062-d1506600-098c-11ea-9053-45dae3013551.png"><img src="https://user-images.githubusercontent.com/27288110/69009062-d1506600-098c-11ea-9053-45dae3013551.png" alt="图片" style="max-width: 100%;"></a><br>
(I have rotated the image with my mouse)</p>
<p dir="auto"><strong>Expected outcome</strong></p>


<p dir="auto">I want to use Home button to reset the image to the initial view, but Home button did not work.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>Operating system: Win10</li>
<li>Matplotlib version: 3.0.0</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): nbAgg</li>
<li>Python version: 3.7.3</li>
<li>Jupyter version (if applicable): 5.7.8</li>
<li>Other libraries:</li>
</ul>


<p dir="auto">I installed matplotlib by Anaconda.</p>
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>

<p dir="auto">The home, backward, and forward buttons in the UI do nothing when the plot is three dimensional. Also the zoom button does not work at all. It simply rotates the plot.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>

<p dir="auto">From the examples,</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
from matplotlib import cm

fig = plt.figure()
ax = fig.gca(projection='3d')
X, Y, Z = axes3d.get_test_data(0.05)

cset = ax.contourf(X, Y, Z, cmap=cm.coolwarm)
ax.clabel(cset, fontsize=9, inline=1)

plt.show()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">mplot3d</span> <span class="pl-k">import</span> <span class="pl-s1">axes3d</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">cm</span>

<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">gca</span>(<span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)
<span class="pl-v">X</span>, <span class="pl-v">Y</span>, <span class="pl-v">Z</span> <span class="pl-c1">=</span> <span class="pl-s1">axes3d</span>.<span class="pl-en">get_test_data</span>(<span class="pl-c1">0.05</span>)

<span class="pl-s1">cset</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">contourf</span>(<span class="pl-v">X</span>, <span class="pl-v">Y</span>, <span class="pl-v">Z</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s1">cm</span>.<span class="pl-s1">coolwarm</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">clabel</span>(<span class="pl-s1">cset</span>, <span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-c1">9</span>, <span class="pl-s1">inline</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)

<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>

<p dir="auto">Buttons don't work.</p>
<p dir="auto"><strong>Expected outcome</strong></p>


<p dir="auto">Buttons would work.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>Operating system: macOS 10.13.4</li>
<li>Matplotlib version: 2.2.2</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg</li>
<li>Python version: 3.6</li>
<li>Jupyter version (if applicable): n/a</li>
<li>Other libraries: n/a</li>
</ul>


<p dir="auto">Python and matplotlib installed via pip in a virtualenv.</p>