Commit 4f833d33 authored by Leonie Pick's avatar Leonie Pick

Test sklearn-versions; Results in article correspond to version 0.20.3.

parent 466dc28d
This diff is collapsed.
...@@ -20,7 +20,7 @@ def Selection(Time,Date,HMC,Index_thres1,StormIndices,IndexMin,IndexMin1,IndexMi ...@@ -20,7 +20,7 @@ def Selection(Time,Date,HMC,Index_thres1,StormIndices,IndexMin,IndexMin1,IndexMi
end = np.where(Time[:,4]==ends[i])[0][0] end = np.where(Time[:,4]==ends[i])[0][0]
ax[i].plot(Time[start:end,4],HMC[start:end],color='gray') ax[i].plot(Time[start:end,4],HMC[start:end],color='gray')
ax[i].plot(Time[start:end,4],Index_thres1[start:end],linestyle='--',color='midnightblue',label=r'$Hl_t\in$ ['+str(np.around(max(Index_thres1[start:end]),2))+' nT ,'+str(np.around(min(Index_thres1[start:end]),2))+' nT]') ax[i].plot(Time[start:end,4],Index_thres1[start:end],linestyle='--',color='midnightblue',label=r'$Hl_t\in$ ['+str(np.around(max(Index_thres1[start:end]),2))+' nT, '+str(np.around(min(Index_thres1[start:end]),2))+' nT]')
ax[i].scatter(Time[StormIndices,4],HMC[StormIndices],color='midnightblue',s=5,zorder=3) ax[i].scatter(Time[StormIndices,4],HMC[StormIndices],color='midnightblue',s=5,zorder=3)
ax[i].set_xlim([Time[start,4],Time[end,4]]) ax[i].set_xlim([Time[start,4],Time[end,4]])
...@@ -189,8 +189,8 @@ def IndexDist(Time,YearsIndex,Storms,Kp_all,KpHours_all,HMC,Save): ...@@ -189,8 +189,8 @@ def IndexDist(Time,YearsIndex,Storms,Kp_all,KpHours_all,HMC,Save):
#ax3.yaxis.label.set_color('maroon') #ax3.yaxis.label.set_color('maroon')
if Save == True: if Save == True:
fig.savefig('./Dump/Fig/development/KpDist_test.pdf',format='pdf',dpi=200,transparent=True) fig.savefig('./Dump/Fig/development/HMCDist.pdf',format='pdf',dpi=200,transparent=True)
fig.savefig('./Dump/Fig/development/KpDist_test.png',format='png',dpi=200,transparent=True) fig.savefig('./Dump/Fig/development/HMCDist.png',format='png',dpi=200,transparent=True)
plt.show() plt.show()
### ###
### ###
...@@ -383,7 +383,7 @@ def CM(CM,Condition,n_classes,Save,SaveName): ...@@ -383,7 +383,7 @@ def CM(CM,Condition,n_classes,Save,SaveName):
ax.grid(False) ax.grid(False)
if Save == True: if Save == True:
fig.savefig('./Dump/Fig/development/Confusion_'+SaveName+'.pdf',format='pdf',dpi=300,transparent=True) fig.savefig('./Dump/Fig/development/ConfusionRow_'+SaveName+'.pdf',format='pdf',dpi=300,transparent=True)
#fig.savefig('./Dump/Fig/ConfusionCol.png',format='png',dpi=300,transparent=True) #fig.savefig('./Dump/Fig/ConfusionCol.png',format='png',dpi=300,transparent=True)
plt.show() plt.show()
...@@ -640,7 +640,7 @@ def Musical(Time,HTime,Storms,Kp_all,KpHours_all,SN,SNYears,HMC,HMC_filt,Referen ...@@ -640,7 +640,7 @@ def Musical(Time,HTime,Storms,Kp_all,KpHours_all,SN,SNYears,HMC,HMC_filt,Referen
if Save == True: if Save == True:
fig.savefig('./Dump/Fig/development/StormsSetup.pdf',format='pdf',dpi=200)#,transparent=True) fig.savefig('./Dump/Fig/development/StormsSetup.pdf',format='pdf',dpi=200)#,transparent=True)
#fig.savefig('./Dump/Fig/development/StormsSetup.png',format='png',dpi=200)#,transparent=True) fig.savefig('./Dump/Fig/development/StormsSetup.png',format='png',dpi=200)#,transparent=True)
plt.show() plt.show()
### ###
### ###
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment