# HG changeset patch # User Henry S. Thompson # Date 1701972943 0 # Node ID 7179c83f32ea2713b04b4643793a5807d67c6d3f # Parent 5e050e313f8fc02141c74ec363773f3e78583581 support semilogy from cmd line diff -r 5e050e313f8f -r 7179c83f32ea lib/python/cc/lmh/plots.py --- a/lib/python/cc/lmh/plots.py Wed Dec 06 13:36:49 2023 +0000 +++ b/lib/python/cc/lmh/plots.py Thu Dec 07 18:15:43 2023 +0000 @@ -7,10 +7,12 @@ import numpy as np from numpy import loadtxt -def counts(yy_file,title1,title2,**kargs): +def counts(yy_file,title1,title2,semiLog=False,**kargs): '''Plot number of responses with LM against year''' yy = loadtxt(yy_file,delimiter='\t') plt.title("%s based on LastModified data from %s"%(title1,title2)) + if semiLog: + plt.semilogy() plt.plot(yy[0:,0],yy[0:,1],color='red') plt.show()