Пример #1
0
x_end = 700
y_start = 0
y_end = 2 ^ 22

plt.figure(figsize=(12, 14))
ax = plt.subplot(311)
plt.ylabel("No of substrings", fontsize=16)
plt.xlabel("Read Length", fontsize=16)
plt.xlim(x_start, x_end)
#plt.ylim(y_start, y_end)
#plt.yticks(np.arange(y_start,y_end,2))

plt.title(Name)
ax.get_xaxis().tick_bottom()
ax.get_yaxis().tick_left()
Array = CommonFunctions.FiletoArray('Read_lengths' + Name + '.csv')
XAxis = []
for i in Array:
    XAxis += [int(i[0])]
YAxis = []
for i in Array:
    YAxis += [int(i[1])]
print(len(XAxis), len(YAxis))
plt.semilogy(XAxis, YAxis, marker='s', lw=0.5, color="black", basey=2, alpha=1)

plt.subplot(312)
plt.ylabel("No of repeats", fontsize=16)
plt.xlabel("Read Length", fontsize=16)
plt.xlim(x_start, x_end)
#plt.ylim(y_start, y_end)