title: Is there a way to plot the z-Value in python
body: <p>I'm have got a programme that uses matplotlib and pandas to plot the rolling mean and standard deviation for the price of bitcoin. I'm wondering how I can plot the z values ( the number of standard deviations the price is from the mean). </p>
  
  <pre><code>import pandas as pd
  from matplotlib import pyplot as plt
  
  btc_1_day = pd.read_csv('C:\Users\Oliver\Desktop\data\data1_btcusdt_1day.csv')
  
  df1_btc = pd.DataFrame(btc_1_day)
  
  df1_btc['SMA_10'] = df1_btc.price_close.rolling(10).mean()
  df1_btc['SMSD_10'] = df1_btc.price_close.rolling(10).std()
  
  
  plt.grid(True)
  plt.plot(btc_1_day.price_close)
  plt.plot(df1_btc['SMA_10'],label='10 day moving average')
  plt.plot(df1_btc['SMSD_10'],label='10 day standard deviation')
  plt.legend(loc=2)
  plt.show()
  </code></pre>