@@ -700,20 +700,21 @@ def plot_transient_search(results, gif_name=None):
700700 ntrial = ntrial_sum ,
701701 n_summed_spectra = nprof / nave ,
702702 )
703- fig = plt .figure (figsize = (10 , 10 ))
703+ fig = plt .figure (figsize = (10 , 10 ), dpi = 100 )
704704 plt .clf ()
705705 gs = plt .GridSpec (2 , 2 , height_ratios = (1 , 3 ))
706706 for i_f in [0 , 1 ]:
707707 axf = plt .subplot (gs [0 , i_f ])
708708 axima = plt .subplot (gs [1 , i_f ], sharex = axf )
709709
710- axima .pcolormesh (f , t , ima / detl * 3 , vmax = 3 , vmin = 0.3 , shading = "nearest" )
710+ axima .pcolormesh (f , t , ima , vmax = detl , vmin = detl / 10 , shading = "nearest" , rasterized = True )
711711
712712 mean_line = np .mean (ima , axis = 0 ) / sum_detl * 3
713713 maxidx = np .argmax (mean_line )
714714 maxline = mean_line [maxidx ]
715715 best_f = f [maxidx ]
716- for il , line in enumerate (ima / detl * 3 ):
716+ for il , line in enumerate (ima ):
717+ line = line / detl * 3
717718 axf .plot (
718719 f ,
719720 line ,
@@ -722,11 +723,13 @@ def plot_transient_search(results, gif_name=None):
722723 c = "grey" ,
723724 alpha = 0.5 ,
724725 label = f"{ il } " ,
726+ rasterized = True ,
725727 )
726728 maxidx = np .argmax (mean_line )
727729 if line [maxidx ] > maxline :
728730 best_f = f [maxidx ]
729731 maxline = line [maxidx ]
732+
730733 if 3.5 < maxline < 5 and i_f == 0 : # pragma: no cover
731734 print (
732735 f"{ gif_name } : Possible candidate at step { i } : { best_f } Hz (~{ maxline :.1f} sigma)"
0 commit comments