gnuplot 旋转轴标签(xlabel、ylabel 和 zlabel)在 3d 图中不起作用

gnuplot rotate axis label (xlabel, ylabel and zlabel) not working in 3d plots

我很难在 3d 图上将 y 轴和 z 轴标签与坐标轴对齐。 这是我的代码。

  set ylabel "Infectious Duration (days)" rotate by 90
  set zlabel "Compute Time (sec)" rotate by 90
  set logscale x

  splot  "TCompISIS3d.txt" using 1:2:3 title 'SIS-Inf1' with points , \
         "TCompISIS3d.txt" using 1:4:5 title 'SIS-Inf4' with points , \
         "TCompISIS3d.txt" using 1:6:7 title 'SIS-Inf10' with points , \
         "TCompISIS3d.txt" using 1:8:9 title 'SIS-Inf50' with points

但它不会旋转任何标签。请帮忙!

使用 rotate by 设置轴标签的任意旋转仅适用于二维绘图。在 3D 中,您只能使用 rotate parallel 将标签方向更改为 运行 平行于相应的轴。来自 III Commands → Set-show → Xlabel 下的文档:

The orientation (rotation angle) of the x, x2, y and y2 axis labels in 2D plots can be changed by specifying rotate by . The orientation of the x and y axis labels in 3D plots defaults to horizontal but can be changed to run parallel to the axis by specifying rotate parallel.