Commit 9656e7f6 authored by Dario Barghini's avatar Dario Barghini
Browse files

Update pysqm/plot.py. Add option to ignore limits_nsb if null vector

parent b8653c53
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -590,7 +590,7 @@ class Plot(object):
        self.thegraph_sunalt.set_xlim([\
         config.limits_sunalt[0]*np.pi/180.,\
         config.limits_sunalt[1]*np.pi/180.])
        self.thegraph_sunalt.set_ylim(config.limits_nsb)
        if np.size(config.limits_nsb) == 2: self.thegraph_sunalt.set_ylim(config.limits_nsb)

        premidnight_label = str(Data.premidnight.label_dates).replace('[','').replace(']','')
        aftermidnight_label = str(Data.aftermidnight.label_dates).replace('[','').replace(']','')
@@ -671,7 +671,7 @@ class Plot(object):
            return(None)

        self.thegraph_time.set_xlim(begin_plot_dt,end_plot_dt)
        self.thegraph_time.set_ylim(config.limits_nsb)
        if np.size(config.limits_nsb) == 2: self.thegraph_time.set_ylim(config.limits_nsb)

        premidnight_label = str(Data.premidnight.label_dates).replace('[','').replace(']','')
        aftermidnight_label = str(Data.aftermidnight.label_dates).replace('[','').replace(']','')