问题描述
我正在Alpine图片( fig,ax1 = plt.subplots(figsize = (14,12))
marker_style = dict(color='tab:blue',marker='s',markersize=15,markerfacecoloralt='tab:red')
#c sequence
c = data['hotspot_ratio'].dropna()
# plasma = cm.get_cmap('plasma',5)
# cmap = plasma(np.linspace(0,1,10))
x = data['hotspot_ratio'].dropna()
y = data['hotspot_ratio'].dropna()
xr = [i+random.uniform(0,0.00035) for i in x]
# yr = [i+random.uniform(0.00001,0.0001) for i in y]
# xr = x
yr = y
n = data['name'].dropna()
r = data['region'].dropna()
p = ax1.scatter(xr,yr,marker = 's',edgecolor = 'k',s = 400,c=c,cmap = 'coolwarm')
ax1.set_xlim(np.min(xr)-0.000035,np.max(xr)+0.000035)
ax1.set_ylim(data['hotspot_ratio'].min()-0.0001,data['hotspot_ratio'].max()+0.00003)
ax1.tick_params(which = 'minor')
ax1.tick_params(left = True,bottom = False,labelbottom=False,labelsize = 14)
ax1.minorticks_on()
plt.tick_params(axis='x',which='both',bottom=False,top=False,labelbottom=False)
ax1.grid(True,axis = 'y',which = 'major',color='grey',linestyle='-',linewidth=1)
ax1.grid(True,which = 'minor',linewidth=0.5)
ax1.set_ylabel('Hotspot Ratio (Hotspot area/total area)',size = 16,fontweight = 'bold')
# zip joins x and y coordinates in pairs
# for i,txt in enumerate(n):
# plt.annotate(txt,# this is the text
# (xr[i],yr[i]),# this is the point to label
# textcoords="offset points",# how to position the text
# xytext=(0,20),# distance from text to points (x,y)
# ha='center',# rotation = 90-(random.uniform(0,8))) # horizontal alignment can be left,right or center
for i,txt in enumerate(r):
plt.annotate(txt,# this is the text
(xr[i],# this is the point to label
textcoords="offset points",# how to position the text
xytext=(0,-51),y)
ha='center',va = 'center',rotation = 90) # horizontal alignment can be left,right or center
ax1.hlines(regions['hotspot_ratio']['Atqasuk'],np.min(xr)-0.000035,np.max(xr)+0.000035,color = '#C7D8F0',linewidth = 4,zorder = 0)
ax1.annotate('Atqasuk',(np.min(xr),regions['hotspot_ratio']['Atqasuk']+0.00001),size = 13,fontweight = 'bold')
ax1.hlines(regions['hotspot_ratio']['Utqiagvik'],zorder = 0)
ax1.annotate('Utqiagvik',regions['hotspot_ratio']['Utqiagvik']-0.000015),fontweight = 'bold')
ax1.hlines(regions['hotspot_ratio']['Innoko'],color = '#4E68D8',zorder = 0)
ax1.annotate('Innoko',(np.max(xr)-0.000035,regions['hotspot_ratio']['Innoko']+0.00001),fontweight = 'bold')
ax1.hlines(regions['hotspot_ratio']['Mackenzie Delta'],color = '#B3CDFB',zorder = 0)
ax1.annotate('Mackenzie Delta',regions['hotspot_ratio']['Mackenzie Delta']-0.000015),fontweight = 'bold')
ax1.hlines(regions['hotspot_ratio']['Minto Flats'],color = '#B30427',zorder = 0)
ax1.annotate('Minto Flats',regions['hotspot_ratio']['Minto Flats']+0.00001),fontweight = 'bold')
ax1.hlines(regions['hotspot_ratio']['Old Crow Flats'],color = '#8EB0FF',zorder = 0)
ax1.annotate('Old Crow Flats',(np.max(xr)-0.0001,regions['hotspot_ratio']['Old Crow Flats']-0.000015),fontweight = 'bold')
ax1.hlines(regions['hotspot_ratio']['YK Delta'],color = '#F5C2AA',zorder = 0)
ax1.annotate('YK Delta',regions['hotspot_ratio']['YK Delta']+0.00001),fontweight = 'bold')
ax1.hlines(regions['hotspot_ratio']['Yellowknife/Daring L.'],color = '#9CBDFF',zorder = 0)
ax1.annotate('Yellowknife/Daring L.',(np.max(xr)-0.000155,regions['hotspot_ratio']['Yellowknife/Daring L.']+0.00001),fontweight = 'bold')
ax1.hlines(regions['hotspot_ratio']['Yukon Flats'],color = '#80A3FA',zorder = 0)
ax1.annotate('Yukon Flats',(np.max(xr)-0.000075,regions['hotspot_ratio']['Yukon Flats']-0.000015),fontweight = 'bold')
ax1.hlines(regions['hotspot_ratio']['Toolik/Sag River'],color = '#455DCE',zorder = 0)
ax1.annotate('Toolik/Sag River',regions['hotspot_ratio']['Toolik/Sag River']-0.000015),fontweight = 'bold')
#plt.savefig('HotspotRatiosbyarea.png',dpi = 400)
)上运行crond
,并且我希望将此设置放入CI / CD管道中,以便自动重新部署。
现在,我想知道crond -f -d 7
是否将STOP信号转发到仍在运行的脚本,并且是否等待它们退出,然后才自行退出。
在www上找不到相关信息。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)