<p dir="auto"><code class="notranslate">pyplot.stem()</code> does not work when the data contains dates because <code class="notranslate">axes.stem()</code> forces the data to float (</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/matplotlib/matplotlib/blob/998676a8b88790ddb4e9447bdd38cc4ba08d3394/lib/matplotlib/axes/_axes.py#L2285">matplotlib/lib/matplotlib/axes/_axes.py</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 2285
      in
      <a data-pjax="true" class="commit-tease-sha" href="/matplotlib/matplotlib/commit/998676a8b88790ddb4e9447bdd38cc4ba08d3394">998676a</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L2285" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2285"></td>
          <td id="LC2285" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <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">args</span>[<span class="pl-c1">0</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float</span>) </td>
        </tr>
    </tbody></table>
  </div>
</div>
 and <div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/matplotlib/matplotlib/blob/998676a8b88790ddb4e9447bdd38cc4ba08d3394/lib/matplotlib/axes/_axes.py#L2290">matplotlib/lib/matplotlib/axes/_axes.py</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 2290
      in
      <a data-pjax="true" class="commit-tease-sha" href="/matplotlib/matplotlib/commit/998676a8b88790ddb4e9447bdd38cc4ba08d3394">998676a</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L2290" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2290"></td>
          <td id="LC2290" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">second</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">asarray</span>(<span class="pl-s1">args</span>[<span class="pl-c1">0</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float</span>) </td>
        </tr>
    </tbody></table>
  </div>
</div>
).<p></p>
<p dir="auto">Is this really necessary? by removing the conversion to float, plotting dates in the abscissa works, for instance.</p>
<p dir="auto">Hey everyone,</p>
<p dir="auto">I recently updated to MPL 1.3.1 on our group workstation and the stem function does not work anymore with datetime objects as the first argument floating point values on the y axis (same length of course). A similar issue with the same error was reported here two weeks ago:</p>
<p dir="auto"><a href="http://stackoverflow.com/questions/19794225/python-plot-stem-with-datetime-base" rel="nofollow">http://stackoverflow.com/questions/19794225/python-plot-stem-with-datetime-base</a></p>
<p dir="auto">It used to work prior to the update. Do I have to convert the datetime arguments to floats and set the corresponding xlabels manually or will this feature be re-enabled in future releases?</p>
<p dir="auto">Thank you and best regards<br>
Florian</p>