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
- Host: GitHub
- URL: https://github.com/pseyfert/rtgp
- Owner: pseyfert
- License: agpl-3.0
- Created: 2015-12-24T23:49:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-08T21:20:23.000Z (over 10 years ago)
- Last Synced: 2025-04-19T11:17:42.410Z (about 1 year ago)
- Language: C++
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.


## 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)