dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit fe359775ab36052d5095c508b94f719c7a8cf53f
parent bed671c837c1e9b0eaf481da1b2d9eacc53424a7
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu,  3 Dec 2020 10:25:21 +0100

.profile: customize gnuplot style for netcdf plots and add ncshow function

Diffstat:
M.profile | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/.profile b/.profile @@ -117,10 +117,19 @@ alias date-alaska='TZ=US/Alaska date' alias date-uk='TZ=Europe/London date' alias date-israel='TZ=Israel date' -alias gnuplotmatrix='gnuplot -e "set terminal pdf; plot \"-\" matrix w image"' +gnuplotmatrix() { + gnuplot -e 'set terminal pdf; + set xrange [*:*] noextend; + set yrange [*:*] noextend; + set size ratio -1; + plot "-" matrix w image' +} ncplot() { ncdump -l 100000 -v "$1" "$2" | ncdump2tsv | gnuplotmatrix } +ncshow() { + ncplot "$1" "$2" | zathura - +} hurlo() { if [ "$#" -lt 1 ]; then