You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ -z"$1" ] && die "CSV or TSV input file required"
44
+
45
+
case"$1"in
46
+
*.csv)
47
+
separator=","
48
+
infile="$1"
49
+
outfile=$(basename -s csv "$infile")
50
+
;;
51
+
*.tsv)
52
+
separator="\t"
53
+
infile="$1"
54
+
outfile=$(basename -s .tsv "$infile")
55
+
;;
56
+
*)
57
+
infile="$1"
58
+
outfile=$(basename "$infile")
59
+
;;
60
+
esac
61
+
62
+
outfile="$outfile.png"
63
+
64
+
gnuplot -p -e "set term png; set output '$outfile'; set datafile separator '$separator'; set style fill solid; set sty d hist; set xlabel '$xlabel'; set ylabel "$ylabel"; set yrange [0:50]; plot "$infile" u 2:xtic(1) notitle"
0 commit comments