Commit bf9f1f3e6966e15b3d5135de37ba4afc196d7965

Authored by Simon Bonnefoy
Committed by Jürgen Knödlseder
1 parent f895d634

add a method to save plots in show_variability_evolution.py (#2713)

examples/show_variability_evolution.py
@@ -76,7 +76,10 @@ def plot_variability_evolution(filename, plotfile): @@ -76,7 +76,10 @@ def plot_variability_evolution(filename, plotfile):
76 axarr[1].set_title('Significance distribution') 76 axarr[1].set_title('Significance distribution')
77 77
78 #IT SEEMS THAT THE LOG SCALE IS NOT WORKING WELL !!!!!! 78 #IT SEEMS THAT THE LOG SCALE IS NOT WORKING WELL !!!!!!
79 - #axarr[1].set_yscale('log') 79 + #axarr[1].gca().set_yscale('log')
  80 +
  81 + if plotfile != "":
  82 + f.savefig(plotfile+".png")
80 83
81 plt.show() 84 plt.show()
82 85