Commit 7d5a28ea authored by Leonie Pick's avatar Leonie Pick

Correction of plotting mistake in Figure m / Figure S4

parent 42715729
This diff is collapsed.
......@@ -890,13 +890,15 @@ def MusicalClassified(Time,HTime,Reference,Storms,Class_Proba,Class,Kp_all,KpHou
fig2.subplots_adjust(bottom=0.06,top=0.9,left=0.115,right=0.99,hspace=0.00,wspace=0.00)
ClassPositive = np.where(Class==1)[0]
ClassNegative = np.where(Class==0)[0]
nPos, binsPos = np.histogram(HTime[Storms[ClassPositive],4],np.arange(1900,2017,1))
nNeg, binsNeg = np.histogram(HTime[Storms[~ClassPositive],4],np.arange(1900,2017,1))
nNeg, binsNeg = np.histogram(HTime[Storms[ClassNegative],4],np.arange(1900,2017,1))
Training = np.where(Reference[:,2]==1)[0]
ClassPositiveRef = np.where(Reference[Training,0]==1)[0]
nPosRef, binsRef = np.histogram(HTime[Reference[Training[ClassPositiveRef],1]],np.arange(1900,2017,1))
nNegRef, binsRef = np.histogram(HTime[Reference[Training[~ClassPositiveRef],1]],np.arange(1900,2017,1))
ClassNegativeRef = np.where(Reference[Training,0]==0)[0]
nPosRef, binsRef = np.histogram(HTime[Reference[Training[ClassPositiveRef],1],4],np.arange(1900,2017,1))
nNegRef, binsRef = np.histogram(HTime[Reference[Training[ClassNegativeRef],1],4],np.arange(1900,2017,1))
axs2b=axs2.twinx()
axs2b.invert_yaxis()
......
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