如何在 gnuplot 中將字串繪製為 x 軸而不是數字? 2024-7-4 • bash 我有兩列,第一列包含詞彙,第二列包含數字。在這種情況下我該如何設定gnuplot? 答案1 您可以使用xtic或xticlabels前。給定file.dat foo 1.23 bar 4.56 baz 7.89 然後 gnuplot -p -e 'plot "file.dat" using 2:xtic(1) title "foobar"' 給出 相關內容