from rootpy.plotting import Histfrom rootpy.interactive import waitfrom rootpy.io import root_open
hist = Hist(100, -4, 4, name='gaus', title='gaus', drawstyle='hist')hist.FillRandom('gaus', 10000)
hist.Draw('h') # 'h' is not necessary because drawstyle is already 'hist'wait()output = root_open('output.root', 'recreate')hist.Write()
--
You received this message because you are subscribed to the Google Groups "rootpy users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rootpy-users+unsubscribe@googlegroups.com.
To post to this group, send email to rootpy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rootpy-users/2fb68522-31a7-4b6b-9895-ec0dea0a6ecc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.