Commit bf9f1f3e6966e15b3d5135de37ba4afc196d7965
Committed by
Jürgen Knödlseder
1 parent
f895d634
add a method to save plots in show_variability_evolution.py (#2713)
Showing
1 changed file
with
4 additions
and
1 deletions
examples/show_variability_evolution.py
| ... | ... | @@ -76,7 +76,10 @@ def plot_variability_evolution(filename, plotfile): |
| 76 | 76 | axarr[1].set_title('Significance distribution') |
| 77 | 77 | |
| 78 | 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 | 84 | plt.show() |
| 82 | 85 | ... | ... |