[英]matlab 'box' overlays to plot
The following code 以下代码
figure;
plot3(rand(1,1000),rand(1,1000),rand(1,1000),'.')
box on
produces this output: 产生以下输出:
I do not like that the box lines overlay to the plot. 我不喜欢这些框线覆盖该图。
I would like to not show the box lines in the foreground (eg (0,1,1)->(0,0,1)) while still showing the other ones (eg, (0,1,0)->(1,1,0)). 我不想在前景中显示框线(例如(0,1,1)->(0,0,1)),而仍然显示其他框线(例如(0,1,0)->( 1,1,0))。 Does anyone know how to do it?
有人知道怎么做吗?
since MATLAB version R2015b you can control the Box by The BoxStyle
-property: 从MATLAB版本R2015b开始,您可以通过
BoxStyle
-property控制Box:
ax = gca;
ax.BoxStyle = 'back';
or 要么
figure;
plot3(rand(1,1000),rand(1,1000),rand(1,1000),'.')
box on
set(gca, 'BoxStyle','back')
for older versions you can use the grid with solid line-style instead: 对于较旧的版本,您可以使用带有实线样式的网格来代替:
figure;
plot3(rand(1,1000),rand(1,1000),rand(1,1000),'.')
grid on
set(gca,'GridLineStyle','-')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.