An open API service indexing awesome lists of open source software.

https://github.com/pseyfert/rtgp

root to gnuplot utility
https://github.com/pseyfert/rtgp

Last synced: 8 months ago
JSON representation

root to gnuplot utility

Awesome Lists containing this project

README

          

# RTGP - ROOT to GNUPLOT

RTGP is a simple implementation, forwarding ROOT histogram information to
gnuplot, to plot it to the command line.

![demo](http://virgilio.mib.infn.it/~seyfert/images/root2gnuplot.webm.gif)
![demo](http://virgilio.mib.infn.it/~seyfert/images/root2gnuplot_cmd.webm.gif)

## original
The original rtgp is still
[here](https://mathphys.fsk.uni-heidelberg.de/~pseyfert/cc.html)

## more recent

Wrapping all in
[gnuplot-iostream](https://github.com/pseyfert/gnuplot-iostream) seemed a bit
more elegant - although … it also just does a syscall - using `popen` instead
of `system`. And more recently I also saw how to use temporary files
[here](http://www.gnu.org/software/libc/manual/html_node/Temporary-Files.html)
linked from
[here](http://stackoverflow.com/questions/159983/how-can-i-create-a-temporary-file-for-writing-in-c-on-a-linux-platform)

The (in my eyes) greatest disadvantage is that the gnuplot-iostream approach
depends on boost libraries which caused an incredible amount of trouble in all
of my projects (counter intuitive syntax and -worse- breaks whenever moving to
a new computing cluster, compiler version, operating system).

For now the system loads are:
```
gSystem->Load("path/to/libboost_system.so");
gSystem->Load("path/to/libboost_iostreams.so");
gSystem->Load("path/to/librtgp.so")
```

See the video
[here](http://virgilio.mib.infn.it/~seyfert/dumb-root-terminal.html)
demonstrating how rtgp looks in action.

## THANKS

[Matthew](http://stackoverflow.com/questions/34482441/plotting-two-histograms-one-w-and-one-w-o-error-bars-in-one-plot)