本文介绍了包含MATLAB图轴的框中缺少黑线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在MATLAB中绘制图形时,我注意到黑轴中保存轴的部分丢失了(左侧和底部):
我尝试发行:
box off
box on
命令没有成功.你知道我该怎么做才能在轴上得到相应的黑线吗?
注意:
我正在使用OpenGL渲染器:
set(0,'DefaultFigureRenderer','opengl');
解决方案
您似乎已经知道OpenGL渲染器的问题:
- 在MATLAB 7.5(R2007b)的绘图中使用透明度时,为什么轴框和刻度线会消失?
- 为什么将PATCH与透明度一起使用会导致轴在MATLAB中消失?
- 为什么ALPHA会命令顶部和右侧我的图形的边框在MATLAB R2011a(7.12)中消失了吗?
让我们知道您为创建该图形所做的工作.
When plotting on a figure in MATLAB, I have noticed that parts of the black box that holds the axes are missing (the left and bottom one):
I have tried issuing:
box off
box on
commands with no success. Do you know what I can do to get the corresponding black lines on the axes?
Note:
I am using the OpenGL renderer:
set(0,'DefaultFigureRenderer','opengl');
解决方案
It looks like you have known issues with OpenGL renderer:
- Why do the axes box and tick marks disappear when I use transparency in a plot in MATLAB 7.5 (R2007b)?
- Why does using PATCH with transparency cause the axes to disappear in MATLAB?
- Why does the ALPHA commmand make the top and right borders of my figure disappear in MATLAB R2011a (7.12)?
Let us know what you did exactly to create this figure.
这篇关于包含MATLAB图轴的框中缺少黑线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!