Octave 在八度音阶中更改图例的位置
我想在多个子地块的下方或右侧显示图例,同时保持子地块的纵横比。尝试的方法,我编写了以下代码:Octave 在八度音阶中更改图例的位置,octave,legend,subplot,Octave,Legend,Subplot,我想在多个子地块的下方或右侧显示图例,同时保持子地块的纵横比。尝试的方法,我编写了以下代码: x = [0:0.1:10]; figure(); for i=1:4 subplot(3,2,i); plot(x, x); endfor; hSub = subplot(3,2,5:6); plot(0); hLegend = legend('1'); set(hLegend, 'position', get(hSub, 'position')); 产生: 图例应替换完整的图5。我在
x = [0:0.1:10];
figure();
for i=1:4
subplot(3,2,i);
plot(x, x);
endfor;
hSub = subplot(3,2,5:6);
plot(0);
hLegend = legend('1');
set(hLegend, 'position', get(hSub, 'position'));
产生:
图例应替换完整的图5。我在上找不到属性位置
,因此它显然不起作用
是否有办法更改图例的位置或在子地块旁边打印图例的其他方法
编辑:
- 倍频程版本:4.0.3 GUI
- 操作系统:Opensuse 42.2
- graphics_toolkit:使用
、gnuplot
和fltk
qt
- 我想你想要的是
x = [0:0.1:10];
figure();
for i=1:4
subplot(3,2,i);
plot(x, x);
endfor;
l = legend ("foobar")
hsub = subplot(3,2,5:6);
set (l, "position", get (hsub, "position"))
delete (hsub)
给
我想你想要的是
x = [0:0.1:10];
figure();
for i=1:4
subplot(3,2,i);
plot(x, x);
endfor;
l = legend ("foobar")
hsub = subplot(3,2,5:6);
set (l, "position", get (hsub, "position"))
delete (hsub)
给
没错。非常感谢。这适用于我的
fltk
和qt
。知道为什么它不适用于gnuplot
?@Marph:FLTK和Qt后端在GNU倍频程中共享opengl渲染器的很大一部分,它们只在查看部分和HMI上有所不同。非常感谢。这适用于我的fltk
和qt
。知道为什么它不适用于gnuplot
?@Marph:FLTK和Qt后端在GNU倍频程中共享opengl渲染器的大部分,它们只是在查看部分和HMI上有所不同