Commit be6d8f0d authored by Leonie Pick's avatar Leonie Pick
Browse files

Check/Save all images before re-re-submission

parent a0d54ce9
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.
......@@ -101,8 +101,8 @@ def Selection(Time,Date,HMC,Index_thres1,StormIndices,IndexMin1,IndexMin2,Kp,KpH
ax[2].text(0.02,0.9,'Step 3',transform=ax[2].transAxes)
if Save == True:
fig.savefig('./Dump/Fig/development/EventSelection_2.pdf',format='pdf',dpi=200,transparent=True)
fig.savefig('./Dump/Fig/development/EventSelection_2.png',format='png',dpi=200,transparent=True)
fig.savefig('./Dump/Fig/development/EventSelection.pdf',format='pdf',dpi=300,transparent=True)
fig.savefig('./Dump/Fig/development/EventSelection.png',format='png',dpi=300,transparent=True)
plt.show()
####################################################################
......@@ -324,8 +324,8 @@ def IndexDist(Time,YearsIndex,Storms,RefStorms,Kp_all,KpHours_all,HMC,Dst,mode,S
ax2.set_ylabel('Occurrence [%]')
if Save == True:
fig.savefig('./Dump/Fig/development/'+mode+'Dist_2.pdf',format='pdf',dpi=200,transparent=True)
fig.savefig('./Dump/Fig/development/'+mode+'Dist_2.png',format='png',dpi=200,transparent=True)
fig.savefig('./Dump/Fig/development/'+mode+'Dist.pdf',format='pdf',dpi=300,transparent=True)
fig.savefig('./Dump/Fig/development/'+mode+'Dist.png',format='png',dpi=300,transparent=True)
plt.show()
###
###
......@@ -379,8 +379,8 @@ def Diagnostics(n_features,n_classes,NData, Save):
k += 1
if Save == True:
fig.savefig('./Dump/Fig/development/Features.pdf',format='pdf',dpi=200,transparent=True)
#fig.savefig('./Dump/Fig/Features.png',format='png',dpi=200,transparent=True)
fig.savefig('./Dump/Fig/development/Features.pdf',format='pdf',dpi=300,transparent=True)
fig.savefig('./Dump/Fig/development/Features.png',format='png',dpi=300,transparent=True)
plt.show()
###
###
......@@ -428,7 +428,7 @@ def Ranking(Scores, Std, Data, Ranking, nfeaturesFinal, estimators, scoring_name
if Save == True:
fig.savefig('./Dump/Fig/development/Ranking_'+SaveName+'.pdf',format='pdf',dpi=300,transparent=True)
#fig.savefig('./Dump/Fig/Ranking.png',format='png',dpi=300,transparent=True)
fig.savefig('./Dump/Fig/development/Ranking_'+SaveName+'.png',format='png',dpi=300,transparent=True)
plt.show()
return ax
......@@ -474,7 +474,7 @@ def ModelCounts(nModels,SumCounts,CV2_means,N1,K1,N2,K2,Param_Comb,BestID,scorin
if Save == True:
fig.savefig('./Dump/Fig/development/ModelStats_'+SaveName+'.pdf',format='pdf',dpi=300,transparent=True)
#fig.savefig('./Dump/Fig/ModelStats.png',format='png',dpi=300,transparent=True)
fig.savefig('./Dump/Fig/development/ModelStats_'+SaveName+'.png',format='png',dpi=300,transparent=True)
plt.show()
###
###
......@@ -531,8 +531,8 @@ def CM(CM,Condition,n_classes,Save,SaveName):
ax.grid(False)
if Save == True:
fig.savefig('./Dump/Fig/development/'+Name+'_'+SaveName+'.pdf',format='pdf',dpi=200,transparent=True)
#fig.savefig('./Dump/Fig/development/'+Name+'_'+SaveName+'.png',format='png',dpi=200,transparent=True)
fig.savefig('./Dump/Fig/development/'+Name+'_'+SaveName+'.pdf',format='pdf',dpi=300,transparent=True)
fig.savefig('./Dump/Fig/development/'+Name+'_'+SaveName+'.png',format='png',dpi=300,transparent=True)
plt.show()
###
......@@ -893,8 +893,8 @@ def Musical(Time,HTime,Storms,Kp_all,KpHours_all,SN,SNYears,HMC,HMC_filt,Referen
#print(n)
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.pdf',format='pdf',dpi=300)#,transparent=True)
fig.savefig('./Dump/Fig/development/StormsSetup.png',format='png',dpi=300)#,transparent=True)
plt.show()
###
###
......@@ -1096,11 +1096,11 @@ def MusicalClassified(Time,HTime,Reference,Source,Storms,Class_Proba,Class,Kp_al
axs2b.set_ylabel('Count C/SIRs')
if Save == True:
fig.savefig('./Dump/Fig/development/StormsClassified_'+SaveName+'.pdf',format='pdf',dpi=200,bbox_inches='tight',pad_inches=0.01)#,transparent=True)
fig.savefig('./Dump/Fig/development/StormsClassified_'+SaveName+'.png',format='png',dpi=200,bbox_inches='tight',pad_inches=0.01)#,transparent=True)
fig.savefig('./Dump/Fig/development/StormsClassified_'+SaveName+'.pdf',format='pdf',dpi=300,bbox_inches='tight',pad_inches=0.01)#,transparent=True)
fig.savefig('./Dump/Fig/development/StormsClassified_'+SaveName+'.png',format='png',dpi=300,bbox_inches='tight',pad_inches=0.01)#,transparent=True)
fig2.savefig('./Dump/Fig/development/StormsHisto_'+SaveName+'.pdf',format='pdf',dpi=200,bbox_inches='tight',pad_inches=0.01,transparent=True)
fig2.savefig('./Dump/Fig/development/StormsHisto_'+SaveName+'.png',format='png',dpi=200,bbox_inches='tight',pad_inches=0.01,transparent=True)
fig2.savefig('./Dump/Fig/development/StormsHisto_'+SaveName+'.pdf',format='pdf',dpi=300,bbox_inches='tight',pad_inches=0.01,transparent=True)
fig2.savefig('./Dump/Fig/development/StormsHisto_'+SaveName+'.png',format='png',dpi=300,bbox_inches='tight',pad_inches=0.01,transparent=True)
plt.show()
###
......@@ -1172,8 +1172,8 @@ def Stats(HTime,Storms,SN,SNYears,HMC,Proba,Class,Save,SaveName):
axID += 1
if Save == True:
fig.savefig('./Dump/Fig/development/Statistics_'+SaveName+'.pdf',format='pdf',dpi=200,bbox_inches='tight',pad_inches=0.01)
fig.savefig('./Dump/Fig/development/Statistics_'+SaveName+'.png',format='png',dpi=200,bbox_inches='tight',pad_inches=0.01)
fig.savefig('./Dump/Fig/development/Statistics_'+SaveName+'.pdf',format='pdf',dpi=300,bbox_inches='tight',pad_inches=0.01)
fig.savefig('./Dump/Fig/development/Statistics_'+SaveName+'.png',format='png',dpi=300,bbox_inches='tight',pad_inches=0.01)
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