title: Matplotlib shows x-axis labels incomplete ; how to prevent overlapping?
body: <p>I've written the code for showing MACD indicator graph. what I did is here:</p>
  <pre><code>import pandas as pd
  import numpy as np
  import matplotlib.pyplot as plt
  import matplotlib.dates as mdates
  
  df = pd.read_csv(#stock_chart)
  df = df.rename(columns={&quot;&lt;DTYYYYMMDD&gt;&quot;:&quot;Date&quot;})
  df['Date'] = pd.to_datetime(df['Date'].astype(str), format=&quot;%Y%m%d&quot;)
  print(df.head())
  #seting index for graph
  df = df.set_index(df['Date'].values)
  print(df.head())
  </code></pre>
  <p><em>which my dataframe's head is</em> :
  <img src="https://i.stack.imgur.com/U2aOM.png" alt="Graph columns and rows!" /></p>
  <pre><code>#Macd
  S_term = 12
  L_term = 26
  s_ema = df.close.ewm(span=S_term, adjust=False).mean()
  l_ema = df.close.ewm(span=L_term, adjust=False).mean()
  #calculate MACD
  macd = s_ema - l_ema
  
  signal_term = 9
  signal_line = macd.ewm(span= signal_term, adjust=False).mean()
  
  #plot the graphs
  plt.figure(figsize=(100,10)) #width = 12.2in, height = 4.5
  plt.plot(df.index, macd, label='macd', color = 'red')
  plt.plot(df.index, signal_line, label='Signal Line', color='blue')
  plt.tight_layout()
  
  plt.xticks(rotation=0)
  plt.legend(loc='upper left')
  plt.show()
  </code></pre>
  <p>finally , I got to this :</p>
  <p><img src="https://i.stack.imgur.com/3Uy9G.png" alt="Matplotlib's graph" /></p>
  <p>Anyway , the problem is that despite row index labels are like this : <code>2020-08-19 or &quot;%Y%m%d&quot;</code> , graph labels are incomplete and if I reorder it , the data overlaps on each other . what do I have to do ?</p>