3 ms·
For a quick and dirty on the spot visualization for some data on the command line, I'd like to plug the following: function plot() { { echo 'plot "
by W0lf 6y ago
For a quick and dirty on the spot visualization for some data on the command line, I'd like to plug the following:
function plot() {
{ echo 'plot "-"' "$@"; cat; } | gnuplot -persist;
}
For example:
seq 100 | sed 's/.*/s(&)/' | bc -l | plot linecolor 2
- p4l4g4 6y agoNice! I like it when you can plug such programs in a pipeline. Recently found out that you can use png:- as source or destination in any imagemagick command, to pipe images around! I find it really useful in combination with xclip, with -t to set the mime type. You can paste the result almost anywhere!