Advertisement
Guest User

Untitled

a guest
Aug 15th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import pandas as pd
  2. import matplotlib.pyplot as plt
  3.  
  4. pjm_data = pd.read_table('http://www.pjm.com/pub/account/loadhryr/2018.txt',
  5. delimiter =',')
  6.  
  7. day_df = pjm_data[pjm_data.DAY=='08/09/18']
  8.  
  9. #%%
  10. fig, ax = plt.subplots()
  11. ax.plot((day_df.HOUR/100.0 - 1.0), day_df.PJME, c='k', linewidth=2)
  12. ax.set_xlim([0, 23])
  13. ax.set_xlabel('Hour of Day', fontsize=12)
  14. ax.set_ylabel('System Load [MW]', fontsize=12)
  15. ax.set_title('PJM Mid-Atlantic Region, 08/09/18', fontweight='bold')
  16. fig.tight_layout()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement