上传者: 38655496
|
上传时间: 2022-03-10 21:31:59
|
文件大小: 71KB
|
文件类型: -
修改python plot折线图的坐标轴刻度,这里修改为整数:
代码如下:
from matplotlib import pyplot as plt
import matplotlib.ticker as ticker
import numpy as np
def std_plot():
overall_std = [34.369, 21.366, 16.516, 11.151]
max_std = [36.769, 21.794, 14.390, 4.684]
plt.figure()
plt.plot(overall_std, label='average_std')
plt