【问题标题】:Resetting xtics ytics gnuplot重置 xtics ytics gnuplot
【发布时间】:2016-11-16 14:03:40
【问题描述】:

在我使用自定义设置后,有什么方法可以重置或使用 xtics(或 ytics)的默认设置?

我需要这样的东西:

set ytics 0.005 nomirror
set y2tics 5 nomirror
plot 'dummy' u 1:2 axes x1y1, dummy2 u 1:2 axes x1y2

##Another plot with "normal" axes
set ytics default (this command doesn't exist but this is what I need)
set y2tics default
plot 'dummy3' u 1:2

因此,如果该命令确实存在,那将解决我的问题,因为我现在拥有的是第二个情节正在使用,当然,为前一个情节定义的 ytics。而且我不想使用 reset 选项,因为我不想在我的脚本中再次定义所有内容。

非常感谢!

【问题讨论】:

  • 谢谢我会检查!

标签: gnuplot


【解决方案1】:

您可以将reset 放在第二个情节之前。但它会重置一切,对你来说可能有点过头了。

您也可以使用set ytics auto。可能会更好。

最好的,

【讨论】:

  • 另外,如果您更改了 tics 格式,您可以重置为默认格式说明符:set xtics format "%h"set xtics format "$%h$" 用于 LaTeX 类型的终端
【解决方案2】:

来自 gnuplot 帮助:

对于 x 和 y 轴上的抽动,默认值为 border mirror norotate,并且 border nomirror norotate 用于 x2 和 y2 轴上的抽动。

所以,你的命令应该是:

set ytics border mirror norotate autofreq
set y2tics border nomirror norotate autofreq    

【讨论】:

    【解决方案3】:

    用途:

    unset ytics
    

    来自http://www.gnuplot.info/docs_4.2/node295.html

    The tics may be turned off with the unset xtics command
    

    【讨论】:

      猜你喜欢
      • 2023-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多