title: Unable to change color of plotted lines on matplotlib
body: <p>Referred to this SO post here: <a href="https://stackoverflow.com/questions/44806598/matplotlib-set-color-cycle-versus-set-prop-cycle">Matplotlib set_color_cycle versus set_prop_cycle</a></p>
  <p>But I was unable to set all 20 lines' colors to be different, picture of the graph here:
  <a href="https://i.stack.imgur.com/Dr7We.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Dr7We.png" alt="enter image description here" /></a></p>
  <p>Here is my code:</p>
  <pre><code>import matplotlib as mpl
  import matplotlib.pyplot as plt
  import seaborn as sns
  import numpy as np
  import pandas as pd
  from cycler import cycler
  
  
  df = pd.read_csv(r'data.csv', index_col=&quot;Date&quot;, parse_dates=True)
  
  
  df.rolling(window=30).max()[30:].head(20)
  ax = df.plot()
  ax.set(title='Qingdao Port', ylabel='Monthly Average Prices')
  ax.set_prop_cycle('color',plt.cm.jet(np.linspace(0,1,20)))
  plt.show()
  </code></pre>
  <p>Do help me out here!</p>