多图中坐标系的名称是什么?

问题描述 投票:0回答:1

我有多重绘图:

set multiplot layout 2,1 rowsfirst 

我想对两个图形使用此命令(每个图形的范围不同)

set obj 1 rectangle behind from first 65, graph 0 to first 656, graph 1 back
set obj 1 fillstyle solid 1.0 fillcolor rgb "gray90"

请问多重布局中第二张图对first的等价性是什么?第二张图的坐标系如何表示?

gnuplot
1个回答
1
投票

您想阅读help coordinates

我建议以下内容:

set multiplot layout 2,1 rowsfirst

   # plot no. 1, all coordinates correspond to this plot
   set xrange [0:2*pi]
   set object 1 rectangle from first 1.2, graph 0 to first pi, graph 1 fillcolor "light-blue"
   plot sin(x)

   # plot no. 2, all coordinates now correspond to this plot
   # overwrite object 1 to replace the blue background by a green one
   set xrange [2*pi:4*pi]
   set object 1 rectangle from first 3*pi, graph 0 to first 10.0, graph 1 fillcolor "light-green"
   plot cos(x)

unset multiplot

first 1.2中的“第一个”和graph 0中的“图”不指图的索引。 “第一个”对应于current图的x 1-/ y 1-轴,“ graph”对应于current图的完整区域。 >

这是结果:

colored ranges in multiplot

© www.soinside.com 2019 - 2024. All rights reserved.