sudo apt install nautilus-scripts-manager
paste the "open-with-gnuplot" file in ~/.local/share/nautilus/scripts/
chmod u+x open-with-gnuplot
Then right clicking your input file and going to "Script" option you will get "open-with-gnuplot" option
save the text as open-with-gnuplot
#!/bin/bash
IFS=$'\n'
for FILE in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do
echo
gnuplot <<- EOF
reset
set notitle
set term pngcairo
set output "${FILE}.png"
plot "${FILE}" w l lw 2 lc "blue" notitle
EOF
done
paste the "open-with-gnuplot" file in ~/.local/share/nautilus/scripts/
chmod u+x open-with-gnuplot
Then right clicking your input file and going to "Script" option you will get "open-with-gnuplot" option
save the text as open-with-gnuplot
#!/bin/bash
IFS=$'\n'
for FILE in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do
echo
gnuplot <<- EOF
reset
set notitle
set term pngcairo
set output "${FILE}.png"
plot "${FILE}" w l lw 2 lc "blue" notitle
EOF
done
Comments
Post a Comment