Gnuplot \ Multiplot:三个yaxis和三个情节

时间:2016-12-15 10:32:17

标签: plot gnuplot yaxis

是否有可能使用multiplot有三个地块,每个地块有三个y轴? 我知道可以在一个图上使用三个轴,如下所示:How to plot multiple y-axes?

我希望彼此之间有三张图。

以下是我要找的内容:

enter image description here

非常感谢!

编辑: 我设法获得了类似的图表。使用我发布的代码,我得到以下图表:

3x3 diagramm Gnuplot

现在我不知道如何将ytics(我的意思是y1轴上的水平小线)到y3轴(y轴上的太多抽动)。如果这不可能,我必须将所有抽搐放在同一位置(?)。 另一个问题是画布右侧的空间。

set terminal pngcairo size 2400,600
set output "GNUPLOT3x3.png"
set multiplot layout 3,2

set lmargin 30
set bmargin 3
set rmargin 20  
set tmargin 1

set xlabel "Taktzeit [s]" 
set ylabel "Obere Temperatur in K" 
set xrange [ 0.00000 : 30.0000 ] 
set ytics nomirror

set y2tics
set ytics textcolor rgb "violet"
set ylabel textcolor rgb "violet"
set y2tics textcolor rgb "green"
set y2label textcolor rgb "green"
unset key 
f(x)=293.15*(1/(1-933.32*x/(20000000*0.0062*log(1.61))))
plot f(x) t "\\tiny Temperatur" lt rgb "violet" axes x1y1, sin(x) axes x1y2

set xlabel " " 
set ylabel "Dritte YAchse Abb.1" 
set xrange [ 0.00000 : 30.0000 ] 
set ytics nomirror
set ytics offset -10,0
set ylabel offset -10,0
set ytics textcolor rgb "red"
set ylabel textcolor rgb "red"
set origin 0,0.666666667
plot 1 

set xlabel "Taktzeit" 
set ylabel "Obere Temperatur in K" 
set xrange [ 0.00000 : 30.0000 ] 
set ytics nomirror
set y2tics
set ytics offset 0,0
set ylabel offset 0,0
set ytics textcolor rgb "violet"
set ylabel textcolor rgb "violet"
plot 2 axes x1y1 lt rgb "violet", sin(x) axes x1y2
unset key 

set origin 0,0.333333333333
set xlabel "Taktzeit" 
set ylabel "Obere Temperatur in K" 
set xrange [ 0.00000 : 30.0000 ] 
set ytics nomirror
set ytics offset -10,0
set ylabel offset -10,0
set ytics textcolor rgb "red"
set ylabel textcolor rgb "red"
plot cos(x)
unset key 

set xlabel "Taktzeit" 
set ylabel "Obere Temperatur in K" 
set xrange [ 0.00000 : 30.0000 ] 
set ytics nomirror
set y2tics
set ytics offset 0,0
set ylabel offset 0,0
set ytics textcolor rgb "violet"
set ylabel textcolor rgb "violet"
plot sin(x) axes x1y1 lt rgb "violet", cos(x) axes x1y2
unset key 

set origin 0,0
set xlabel "Taktzeit" 
set ylabel "Obere Temperatur in K" 
set xrange [ 0.00000 : 30.0000 ] 
set ytics nomirror
set ytics offset -10,0
set ylabel offset -10,0
set ytics textcolor rgb "red"
set ylabel textcolor rgb "red"
plot tan(x)
unset key 


unset key
unset multiplot

谢谢!

0 个答案:

没有答案