Saving All Graphs as PNG Files

if you’re stuck with a ROOT version that doesn’t have rootprint, you could still use “my” root-print:

$> root-print -h
Usage: root-print [options] file.root [file.root [...]]
ex:
 $> root-print -f pdf ./testdata/histos.root
 $> root-print -f pdf ./testdata/histos.root:h1
 $> root-print -f pdf ./testdata/histos.root:h.*
 $> root-print -f pdf -o output ./testdata/histos.root:h1

options:
  -f string
    	output format for plots (pdf, png, svg, ...) (default "pdf")
  -o string
    	output directory for plots
  -v	enable verbose mode

I have put binaries over there:

but if you have a Go installation (Go is installed on lxplus, for instance), it’s as simple as:

$> go get -v go-hep.org/x/hep/rootio/cmd/root-print

hth,
-s