From: Norwid B. <nb...@ya...> - 2025-02-13 13:06:59
|
@Mark While I'm not aware `.set y2label` to be a syntax accepted by gnuplot, I found the test script below -- without the leading period -- worked fine from the Bash by either `gnuplot ./test.spt`, or `gnuplot-qt ./test.spt`. The test run gnuplot 6.0.2 as currently provided by Linux Debian 13/trixie which for now (still) is branch testing. If an interactive GUI isn't a requirement for you, could the installation of a second (i.e., additional) Linux distribution equally be an option for you? Or one which lives in a USB thumbdrive, thanks to e.g., [rufus](https://rufus.ie/)? According to Debian's tracker,[1] Ubuntu 24.10 and future 25.04 currently package version 6.0.0. However, repology.org[2] mentions for instance Devuan (unstable), a Debian relative, equally set to gnuplot 6.0.2. Norwid ``` test.spt set terminal pngcairo enhanced font 'Verdana,10' set output "test.png" set title "title" set grid set key left set xlabel "primary abscissa [x]" set x2tics set link x2 via x/3.14 inverse x*3.14 set x2label "secondary abscissa [{/Symbol p}]" set format x2 "%.1f" set ylabel "ordinate [y]" set format y "%.2f" set ytics nomirror set y2tics set y2label "ordinate [y/8]" set link y2 via y/8 inverse y*8 set format y2 "%.3f" plot sin(x) ``` [1] https://tracker.debian.org/pkg/gnuplot [2] https://repology.org/project/gnuplot/packages |