TNO Intern

Commit e8608f1e authored by Arjo Segers's avatar Arjo Segers
Browse files

Replace nan by zero in availability plots.

parent 16b20922
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -40,6 +40,9 @@
# 2026-07, Arjo Segers
#   Use new `cso_listing` module.
#
# 2026-08, Arjo Segers
#   Replace no-data by zero in  `CSO_Inquire_Plot_Avail` class.
#

########################################################################
###
@@ -693,6 +696,9 @@ class CSO_Inquire_Plot_Avail(utopya.UtopyaRc):
                ndf.at[ nn.index, serie ] = nn.values
            #endfor
            
            # replace no-data by zero:
            ndf.fillna( 0.0, inplace=True )

            # new:
            fig = plt.figure(figsize=(12, 4))
            ax = fig.add_axes([0.05, 0.07, 0.94, 0.85])