我正在尝试从数据中绘制图形,但是y轴从最大值开始减小,但是……我需要帮助。这是我的代码和情节
import numpy as np
import matplotlib.pyplot as plt
from datetime import datetime
from scipy.optimize import curve_fit
f = open("/Users/danielhankim/normalized_degree_distribution.txt", 'r')
data = f.readlines()
x = np.arange(1., 72., 1)
plt.plot(data, '.')
#plt.xscale('log')
#plt.yscale('log')
plt.xlabel('k')
plt.ylabel('P(k)')
plt.show(block=False)
f.close()