├── README.md ├── example.jpg ├── example2.jpg ├── gnuplot-5.2.6+dfsg1-sixel.patch ├── gnuplot-data_5.2.6+dfsg1-1_all.deb ├── gnuplot-doc_5.2.6+dfsg1-1_all.deb ├── gnuplot-nox-dbgsym_5.2.6+dfsg1-1_amd64.deb ├── gnuplot-nox_5.2.6+dfsg1-1_amd64.deb ├── gnuplot-qt-dbgsym_5.2.6+dfsg1-1_amd64.deb ├── gnuplot-qt_5.2.6+dfsg1-1_amd64.deb ├── gnuplot-x11-dbgsym_5.2.6+dfsg1-1_amd64.deb ├── gnuplot-x11_5.2.6+dfsg1-1_amd64.deb ├── gnuplot_5.2.6+dfsg1-1_all.deb ├── inside-screen.jpg ├── inside-tmux.jpg └── sixel-plot.sh /README.md: -------------------------------------------------------------------------------- 1 | # sixel-gnuplot 2 | GNUplot with sixel support 3 | 4 | 5 | On debian, just use these binaries (gnuplot backported from debian testing) or make your own using the attached patch or by adding to debian rules "--with-bitmap-terminals" right after --with-gd, so that debian/rules looks like: 6 | 7 | --with-gd --with-bitmap-terminals \ 8 | 9 | Then set GNUTERM, like: 10 | 11 | export GNUTERM="sixelgd size 1280,720 truecolor font arial 10" 12 | 13 | You can mix regular images, ANSI colors and plot of function 14 | 15 | ![example2](./example2.jpg?raw=true) 16 | 17 | This is what you can get, for example a visualization of chrony statistics.log wit the sixel-plot.sh script shown above: 18 | 19 | ![example](./example.jpg?raw=true) 20 | 21 | It works inside GNU screen or tmux when using the proper patches: 22 | 23 | ![inside-screen](./inside-screen.jpg?raw=true) 24 | ![inside-tmux](./inside-tmux.jpg?raw=true) 25 | -------------------------------------------------------------------------------- /example.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/example.jpg -------------------------------------------------------------------------------- /example2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/example2.jpg -------------------------------------------------------------------------------- /gnuplot-5.2.6+dfsg1-sixel.patch: -------------------------------------------------------------------------------- 1 | --- gnuplot-5.2.6+dfsg1-orig/debian/rules 2017-11-09 04:39:18.000000000 +0000 2 | +++ gnuplot-5.2.6+dfsg1/debian/rules 2019-03-22 09:40:21.077108561 +0000 3 | @@ -31,7 +31,7 @@ 4 | --with-gihdir=\$${prefix}/share/gnuplot \ 5 | --without-lasergnu \ 6 | --with-png \ 7 | - --with-gd \ 8 | + --with-gd --with-bitmap-terminals \ 9 | --without-lisp-files \ 10 | --without-linux-vga \ 11 | --with-readline=bsd 12 | -------------------------------------------------------------------------------- /gnuplot-data_5.2.6+dfsg1-1_all.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/gnuplot-data_5.2.6+dfsg1-1_all.deb -------------------------------------------------------------------------------- /gnuplot-doc_5.2.6+dfsg1-1_all.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/gnuplot-doc_5.2.6+dfsg1-1_all.deb -------------------------------------------------------------------------------- /gnuplot-nox-dbgsym_5.2.6+dfsg1-1_amd64.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/gnuplot-nox-dbgsym_5.2.6+dfsg1-1_amd64.deb -------------------------------------------------------------------------------- /gnuplot-nox_5.2.6+dfsg1-1_amd64.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/gnuplot-nox_5.2.6+dfsg1-1_amd64.deb -------------------------------------------------------------------------------- /gnuplot-qt-dbgsym_5.2.6+dfsg1-1_amd64.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/gnuplot-qt-dbgsym_5.2.6+dfsg1-1_amd64.deb -------------------------------------------------------------------------------- /gnuplot-qt_5.2.6+dfsg1-1_amd64.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/gnuplot-qt_5.2.6+dfsg1-1_amd64.deb -------------------------------------------------------------------------------- /gnuplot-x11-dbgsym_5.2.6+dfsg1-1_amd64.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/gnuplot-x11-dbgsym_5.2.6+dfsg1-1_amd64.deb -------------------------------------------------------------------------------- /gnuplot-x11_5.2.6+dfsg1-1_amd64.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/gnuplot-x11_5.2.6+dfsg1-1_amd64.deb -------------------------------------------------------------------------------- /gnuplot_5.2.6+dfsg1-1_all.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/gnuplot_5.2.6+dfsg1-1_all.deb -------------------------------------------------------------------------------- /inside-screen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/inside-screen.jpg -------------------------------------------------------------------------------- /inside-tmux.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csdvrx/sixel-gnuplot/8c3750a68ab6d1fc589cbe8edcc421019a385378/inside-tmux.jpg -------------------------------------------------------------------------------- /sixel-plot.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | [[ $# -lt 2 ]] && LAST="+3" || LAST=$2 4 | FILE=$1 5 | 6 | # By default, last=+3 : cut the first 3 obs 7 | #echo "Plotting the last $LAST from $FILE" 8 | 9 | #export GNUTERM="sixelgd size 1280,720 truecolor font arial 10" 10 | export GNUTERM="sixelgd size 1280,360 font arial 10" 11 | 12 | # Use only the 5th field 13 | cat $FILE |\ 14 | awk '{ print $5}' | tail -n $LAST | \ 15 | gnuplot-nox -e "set title '$FILE'; plot '