我正在使用以下算法atm。我想删除Add-PnPWebPartToWebPartPage -ServerRelativePageUrl $serverRelativeUrlOfPage -Xml $webPartXML -ZoneId $zoneId -ZoneIndex $zoneIndex
,10^0
等。相反,我想用ts的值设置x-ticks。我该怎么办?
10^1
我尝试了这个fig = plt.subplots()
# x-Axis (timesteps)
ts = np.array([1,10,20,30,40,50,
60,70,80,90,100,200,
300,400,500,600,700,800,
900,1000,2190,4380,6570,8760])
# y-Axis (values)
u = []
for i in data:
u.append(data[i])
u_array = np.array(u)
# draw plots
plt.plot(ts, u_array, label='r_grb', linestyle='None', marker='x')
plt.ticklabel_format(axis='y')
plt.xscale('log')
,它只是向我显示ax.set_xticklabels([1,10,20,30,40,50,60,70,80,90,100,200,300,400,500,600,700,800,900,1000,2190,4380,6570,8760])
。不知道为什么