
如图是legend boxoff的结果。如何在matlab里设置legend没有边框但是同时legend的背景里没有网格线。
1个回答
展开全部
使用legend boxoff之后好像以后填充背景色不太好使,填充的也只是后面文字部分,曲线部分未包括进来;
建议使用消边的方法去掉边框:
x=-3:0.1:3;
y=sin(x);
plot(x,y)
grid on
h=legend('y=sin(x)');
set(h,'edgecolor','white')
>>
建议使用消边的方法去掉边框:
x=-3:0.1:3;
y=sin(x);
plot(x,y)
grid on
h=legend('y=sin(x)');
set(h,'edgecolor','white')
>>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询