标签:
#coding : utf-8
import matplotlib.pyplot as plt
import numpy as np
plt.switch_backend('agg')
###Make the locical cpx_num###
def loc_n(N,seq_num_name): #the type of seq_num_name is str
n = N-1
f_cpx =open(seq_num_name,'r')
cpx_n = []
for lines in f_cpx.readlines():
lines.strip('\t')
list_lines = lines.split(',')
cpx_n.append(int(list_lines[n]))
f_cpx.close()
return cpx_n
#print(loc_n(2,'fac_seq_num.txt'))
fac_2 = loc_n(2,'fac_seq_num.txt')
abe_2 = loc_n(2,'abe_seq_num.txt')
##########Drawing scatter picture##########
plt.scatter(fac_2,abe_2,
marker='o',
color='blue',
label='loc_2',
s=0.8,
alpha=0.15)
plt.scatter([66],[49],
marker ='