像Matlab这样的gnuplot ytics符号 [英] gnuplot ytics notation like Matlab
问题描述
我想像这样的Matlab图(图形框上只有一个x10 ^ -5)设置ytics gnuplot.有可能吗?
I want set the ytics notation like this Matlab figure (with only one x10^-5 on the graphics box) whit gnuplot. Is it possible?
推荐答案
您当然可以在gnuplot中手动完成 ,使用许多终端机的enhanced
选项并设置label
:
You can certainly do this by hand in gnuplot, using the enhanced
option of many terminals and setting a label
:
set terminal pngcairo enhanced
set output "out.png"
set tmargin at screen 0.95
set label at graph 0,1.05 left 'x 10^{-5}'
plot x
但是请注意,您还必须手动缩放y轴,例如在当前情况下,将函数f(x)
的输出缩放为1e5 * f(x)
.
But note that you'll have to scale the y axis also by hand, for instance by scaling the output of a function f(x)
to 1e5 * f(x)
in the present case.
如果您使用乳胶端子,则只需对标签set label ... '$\times 10^{-5}$'
使用乳胶语法.
If you use the latex terminals then simply use latex syntax for the label: set label ... '$\times 10^{-5}$'
.
如果这对您来说还不够,那么也许其他人可能会提供更自动化的解决方案.
If this is not enough for you, then maybe someone else might come with a more automatic solution.
这篇关于像Matlab这样的gnuplot ytics符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!