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 source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -20,7 +20,7 @@ def Selection(Time,Date,HMC,Index_thres1,StormIndices,IndexMin,IndexMin1,IndexMi
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],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].set_xlim([Time[start,4],Time[end,4]])
......@@ -189,8 +189,8 @@ def IndexDist(Time,YearsIndex,Storms,Kp_all,KpHours_all,HMC,Save):
#ax3.yaxis.label.set_color('maroon')
if Save == True:
fig.savefig('./Dump/Fig/development/KpDist_test.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.pdf',format='pdf',dpi=200,transparent=True)
fig.savefig('./Dump/Fig/development/HMCDist.png',format='png',dpi=200,transparent=True)
plt.show()
###
###
......@@ -383,7 +383,7 @@ def CM(CM,Condition,n_classes,Save,SaveName):
ax.grid(False)
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)
plt.show()
......@@ -640,7 +640,7 @@ def Musical(Time,HTime,Storms,Kp_all,KpHours_all,SN,SNYears,HMC,HMC_filt,Referen
if Save == 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()
###
###
......
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