Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mat=np.loadtxt("Data\\graph_1.txt",int)
- markers=['v','o','s']
- linestyles=['--','-.','-']
- fig= plt.figure(figsize=(4.5,4))
- for i in range (3):
- plt.plot(mat[0,:],mat[i+1,:], linestyle=linestyles[i],marker=markers[i], linewidth=2, markersize=8)
- plt.title("Attack Load (%) vs Attack Space")
- plt.xlabel("Pertange of Attacked Load (%)")
- plt.ylabel("Number of Attack Vectors")
- plt.xticks(mat[0,:])
- plt.legend(['5 Bus', '6 Bus', '7 Bus'],loc='best')
- #plt.grid(True)
- plt.savefig('Graph_1.pdf')
- plt.show()
- ######################################################################################
- #plt.plot(error_mat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement