SHARE
TWEET

Untitled

a guest Dec 8th, 2019 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mat=np.loadtxt("Data\\graph_1.txt",int)
  2.  
  3. markers=['v','o','s']
  4. linestyles=['--','-.','-']
  5. fig= plt.figure(figsize=(4.5,4))
  6. for i in range (3):
  7.     plt.plot(mat[0,:],mat[i+1,:], linestyle=linestyles[i],marker=markers[i], linewidth=2, markersize=8)
  8.     plt.title("Attack Load (%) vs Attack Space")
  9.     plt.xlabel("Pertange of Attacked Load  (%)")
  10.     plt.ylabel("Number of Attack Vectors")
  11.     plt.xticks(mat[0,:])
  12.     plt.legend(['5 Bus', '6 Bus', '7 Bus'],loc='best')
  13.     #plt.grid(True)
  14. plt.savefig('Graph_1.pdf')
  15. plt.show()
  16. ######################################################################################
  17. #plt.plot(error_mat)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top