title: How to make python matplotlib display x-axis coordinates (right corner) when x-axis is a string
body: <p>When I use plt to draw a chart, if the x-axis is a string, the coordinates in the lower right corner cannot be displayed.</p>
  <p>This will only appear in ubuntu. If I use windows, there will be no problem.</p>
  <p>I hope that x can show the value so that I can find the corresponding date in a large chart. What should I do?</p>
  <p>Thanks for your help</p>
  <p>lib: matplotlib             3.1.2</p>
  <p>os: Ubuntu 20.04.2 LTS</p>
  <p>code:</p>
  <pre><code>        x = [&quot;2020-01-01&quot;, &quot;2020-01-02&quot;, &quot;2020-01-03&quot;, &quot;2020-01-04&quot;]
          y = [1, 2, 3, 4]
          fig, ax = plt.subplots(figsize=(10, 6))
          ax.plot(x, y)
          plt.show()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/gZuVo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gZuVo.png" alt="enter image description here" /></a></p>