<h3 dir="auto">Bug summary</h3>
<p dir="auto">Instead of inverting the yaxis, <code class="notranslate">invert_yaxis</code> actually has the same effect as <code class="notranslate">invert_xaxis</code>:</p>
<p dir="auto">The demo code is derived from the demo <a href="https://github.com/matplotlib/matplotlib/issues/14577/#issuecomment-503560047" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/14577/hovercard">here</a>.</p>
<h3 dir="auto">Code for reproduction</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt

fig = plt.figure(figsize=(9,3.5), dpi=80)
ax1 = fig.add_subplot(141, projection='3d')
ax2 = fig.add_subplot(142, projection='3d')
ax3 = fig.add_subplot(143, projection='3d')
ax4 = fig.add_subplot(144, projection='3d')

fig.suptitle(f&quot;matplotlib v{matplotlib.__version__}&quot;)

ax1.plot([1,1,10,10], [1,10,10,10], [1,1,1,10], marker=&quot;o&quot;)
ax2.plot([1,1,10,10], [1,10,10,10], [1,1,1,10], marker=&quot;o&quot;)
ax3.plot([1,1,10,10], [1,10,10,10], [1,1,1,10], marker=&quot;o&quot;)
ax4.plot([1,1,10,10], [1,10,10,10], [1,1,1,10], marker=&quot;o&quot;)

ax2.invert_xaxis()
ax3.invert_yaxis()
ax4.invert_zaxis()

plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</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-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-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">9</span>,<span class="pl-c1">3.5</span>), <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">80</span>)
<span class="pl-s1">ax1</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">141</span>, <span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)
<span class="pl-s1">ax2</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">142</span>, <span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)
<span class="pl-s1">ax3</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">143</span>, <span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)
<span class="pl-s1">ax4</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">144</span>, <span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)

<span class="pl-s1">fig</span>.<span class="pl-en">suptitle</span>(<span class="pl-s">f"matplotlib v<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">matplotlib</span>.<span class="pl-s1">__version__</span><span class="pl-kos">}</span></span>"</span>)

<span class="pl-s1">ax1</span>.<span class="pl-en">plot</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>], [<span class="pl-c1">1</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>], [<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">10</span>], <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">"o"</span>)
<span class="pl-s1">ax2</span>.<span class="pl-en">plot</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>], [<span class="pl-c1">1</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>], [<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">10</span>], <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">"o"</span>)
<span class="pl-s1">ax3</span>.<span class="pl-en">plot</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>], [<span class="pl-c1">1</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>], [<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">10</span>], <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">"o"</span>)
<span class="pl-s1">ax4</span>.<span class="pl-en">plot</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>], [<span class="pl-c1">1</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>], [<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">10</span>], <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">"o"</span>)

<span class="pl-s1">ax2</span>.<span class="pl-en">invert_xaxis</span>()
<span class="pl-s1">ax3</span>.<span class="pl-en">invert_yaxis</span>()
<span class="pl-s1">ax4</span>.<span class="pl-en">invert_zaxis</span>()

<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<h3 dir="auto">Actual outcome</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12622691/144425541-ddb3f3ca-a5d0-47fa-a634-d87279c07db9.png"><img src="https://user-images.githubusercontent.com/12622691/144425541-ddb3f3ca-a5d0-47fa-a634-d87279c07db9.png" alt="Figure_1" style="max-width: 100%;"></a></p>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12622691/144481685-d50ea336-ff9b-43d7-b842-b6d290e45da6.png"><img src="https://user-images.githubusercontent.com/12622691/144481685-d50ea336-ff9b-43d7-b842-b6d290e45da6.png" alt="Figure_edit" style="max-width: 100%;"></a><br>
(well ... somewhat like this)</p>
<h3 dir="auto">Additional information</h3>
<p dir="auto">This was worked on here, but apparently did not fix my issue, or am I missing something?<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/matplotlib/matplotlib/commit/0e413176143711bb417439634acd8d6031264612/hovercard" href="https://github.com/matplotlib/matplotlib/commit/0e413176143711bb417439634acd8d6031264612"><tt>0e41317</tt></a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="458054902" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/14579" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/14579/hovercard" href="https://github.com/matplotlib/matplotlib/pull/14579">#14579</a></p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">3.5.0</p>
<h3 dir="auto">Installation</h3>
<p dir="auto">conda</p>
<h3 dir="auto">Bug summary</h3>
<p dir="auto">The ax.invertxaxis() and ax.invert_yaxis() function both produce the same output, a scatterplot with a flipped X axis.</p>
<h3 dir="auto">Code for reproduction</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from mpl_toolkits import mplot3d
import matplotlib.pyplot as plt

ax = plt.axes(projection='3d')
plt.title(&quot;Invert Z&quot;)
ax.scatter3D(1,1,1)
# ax.invert_xaxis()
ax.invert_yaxis()
# ax.invert_zaxis()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span> <span class="pl-k">import</span> <span class="pl-s1">mplot3d</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-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">axes</span>(<span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">title</span>(<span class="pl-s">"Invert Z"</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">scatter3D</span>(<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>)
<span class="pl-c"># ax.invert_xaxis()</span>
<span class="pl-s1">ax</span>.<span class="pl-en">invert_yaxis</span>()
<span class="pl-c"># ax.invert_zaxis()</span></pre></div>
<h3 dir="auto">Actual outcome</h3>
<p dir="auto">No inversions:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35809470/137531316-0b630f80-6077-436e-9af3-78e473c634b5.png"><img src="https://user-images.githubusercontent.com/35809470/137531316-0b630f80-6077-436e-9af3-78e473c634b5.png" alt="Screen Shot 2021-10-15 at 1 52 25 PM" style="max-width: 100%;"></a></p>
<p dir="auto">X Inversion:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35809470/137531353-e30e4400-9821-4edb-b760-c39b1967cdf2.png"><img src="https://user-images.githubusercontent.com/35809470/137531353-e30e4400-9821-4edb-b760-c39b1967cdf2.png" alt="Screen Shot 2021-10-15 at 1 52 48 PM" style="max-width: 100%;"></a></p>
<p dir="auto">Y Inversion:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35809470/137531630-2c4ef7bf-cadc-44fb-a633-5e22cda5b4f9.png"><img src="https://user-images.githubusercontent.com/35809470/137531630-2c4ef7bf-cadc-44fb-a633-5e22cda5b4f9.png" alt="Screen Shot 2021-10-15 at 1 54 55 PM" style="max-width: 100%;"></a></p>
<p dir="auto">Z Inversion behaves as expected:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35809470/137531781-c01d7b74-fb60-4926-b72c-ec7e86580537.png"><img src="https://user-images.githubusercontent.com/35809470/137531781-c01d7b74-fb60-4926-b72c-ec7e86580537.png" alt="Screen Shot 2021-10-15 at 1 56 10 PM" style="max-width: 100%;"></a></p>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto">I would expect the y axis to be inverted</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">3.2.2</p>
<h3 dir="auto">Matplotlib Backend</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Python version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Jupyter version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Other libraries</h3>
<p dir="auto">mpl_toolkits.mplot3d</p>
<h3 dir="auto">Installation</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Conda channel</h3>
<p dir="auto"><em>No response</em></p>