Linux
  • Linux
  • Bash
  • Debian
  • Ubuntu
  • Shell
  • CentOS
  • SSH
☰

如何在 gnuplot 中將字串繪製為 x 軸而不是數字?

tag-icon 2024-7-4 • tag-icon bash
如何在 gnuplot 中將字串繪製為 x 軸而不是數字?

我有兩列,第一列包含詞彙,第二列包含數字。在這種情況下我該如何設定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"'

給出

在此輸入影像描述

THE END
我認為我的伺服器已成為殭屍網路的一部分,但 ClamAV 找不到任何內容 我認為我的伺服器已成為殭屍網路的一部分,但 ClamAV 找不到任何內容
登入時查看密碼 登入時查看密碼

相關內容

熱門問答

熱門問答

  • cron
  • malware
  • clamav
  • 19.04
  • login-screen
  • gdm

© 2024 rvso.com 版權所有. 網站地圖