This should be R's home base: # first we compute some data b = 10 st = [] for i in range(500): A = random_matrix(ZZ,160,160, x=-2**b, y=2**b) t = cputime() E = A.echelon_form() st.append(cputime(t))
#now we plot a histogram using R from rpy import r r.png('histogram.png',width=640,height=480) r.hist(st,r.seq(1.2,3.7,0.02),main="SAGE HNF Histogram",col="lightblue", prob=True, xlab="seconds") r.lines(r.density(st,bw=0.05),col="black") r.rug(st) r.dev_off() I hope that helps, pylab should also print histograms. Cheers, Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---