<h3 dir="auto">Bug report</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

df = pd.DataFrame({'Depth': [0.2, 0.4, 0.4, 0.4, 0.4, 0.4, 0.6, 0.4, 3.2, 2.0],
                   'DateTimeUTC': [pd.Timestamp('2018-03-28 06:25:08'),
                                   pd.Timestamp('2018-03-28 06:25:49'),
                                   pd.Timestamp('2018-03-28 06:27:06'),
                                   pd.Timestamp('2018-03-28 06:32:11'),
                                   pd.Timestamp('2018-03-28 06:32:59'),
                                   pd.Timestamp('2018-03-28 06:34:02'),
                                   pd.Timestamp('2018-03-28 06:35:38'),
                                   pd.Timestamp('2018-03-28 06:37:04'),
                                   pd.Timestamp('2018-03-28 06:39:08'),
                                   pd.Timestamp('2018-03-28 06:40:52')]})

x = np.asarray(df['DateTimeUTC'])
y = np.asarray(df['Depth'])

fig, axs = plt.subplots(2, 1)


ax = axs[0]
ax.scatter(x, y)
ax.set_title(&quot;using scatter&quot;)

ax = axs[1]
ax.plot(x, y)
ax.set_title(&quot;Using plot&quot;)

fig.tight_layout()
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</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">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">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'Depth'</span>: [<span class="pl-c1">0.2</span>, <span class="pl-c1">0.4</span>, <span class="pl-c1">0.4</span>, <span class="pl-c1">0.4</span>, <span class="pl-c1">0.4</span>, <span class="pl-c1">0.4</span>, <span class="pl-c1">0.6</span>, <span class="pl-c1">0.4</span>, <span class="pl-c1">3.2</span>, <span class="pl-c1">2.0</span>],
                   <span class="pl-s">'DateTimeUTC'</span>: [<span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2018-03-28 06:25:08'</span>),
                                   <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2018-03-28 06:25:49'</span>),
                                   <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2018-03-28 06:27:06'</span>),
                                   <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2018-03-28 06:32:11'</span>),
                                   <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2018-03-28 06:32:59'</span>),
                                   <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2018-03-28 06:34:02'</span>),
                                   <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2018-03-28 06:35:38'</span>),
                                   <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2018-03-28 06:37:04'</span>),
                                   <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2018-03-28 06:39:08'</span>),
                                   <span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2018-03-28 06:40:52'</span>)]})

<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">asarray</span>(<span class="pl-s1">df</span>[<span class="pl-s">'DateTimeUTC'</span>])
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">asarray</span>(<span class="pl-s1">df</span>[<span class="pl-s">'Depth'</span>])

<span class="pl-s1">fig</span>, <span class="pl-s1">axs</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">2</span>, <span class="pl-c1">1</span>)


<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">axs</span>[<span class="pl-c1">0</span>]
<span class="pl-s1">ax</span>.<span class="pl-en">scatter</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">set_title</span>(<span class="pl-s">"using scatter"</span>)

<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">axs</span>[<span class="pl-c1">1</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">ax</span>.<span class="pl-en">set_title</span>(<span class="pl-s">"Using plot"</span>)

<span class="pl-s1">fig</span>.<span class="pl-en">tight_layout</span>()
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1562854/54063057-07fb9d00-41bf-11e9-87a0-71db8d6c83c8.png"><img src="https://user-images.githubusercontent.com/1562854/54063057-07fb9d00-41bf-11e9-87a0-71db8d6c83c8.png" alt="Figure_1" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Matplotlib version: master</li>
</ul>
<p dir="auto">This demo:<br>
<a href="https://matplotlib.org/examples/axes_grid/demo_parasite_axes2.html" rel="nofollow">https://matplotlib.org/examples/axes_grid/demo_parasite_axes2.html</a></p>
<p dir="auto">If I copy/paste all the code from that, the output is a graph doesn't have the "Temperature" axis - neither the axis label, nor the tick labels are there.</p>