gpt4 book ai didi

label - GNUPlot : Can't set ylabel vertical

转载 作者:行者123 更新时间:2023-12-01 10:15:01 28 4
gpt4 key购买 nike

早上好

我使用 GNUPlotLaTeX 术语在 LaTeX 中导入图形。默认情况下,我的 y 标签是水平的,我希望它是垂直的。

编写以下内容确实可以得到我想要的结果:

set term latex 
set out 'm16.tex'

set xrange [0:20]
set datafile separator ','
set key inside bottom
set size 0.65,0.9
set xlabel 'Number of samples'
set ylabel 'Occurences' rotate by 90

最佳答案

设置 Latex 终端时必须指定 rotate 选项:

set term latex rotate

来自 help latex:

If 'rotate' is specified, rotated text, especially a rotated y-axis label, is possible (the packages graphics or graphicx are needed). The 'stacked' y-axis label mechanism is then deactivated.

关于label - GNUPlot : Can't set ylabel vertical,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48906598/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com