使轴与其他网格不同
有谁知道如何使 x 轴和 y 轴看起来更粗一点或以某种方式与其他网格不同?
不知怎的,我希望它看起来像这样
Does anyone know how to make x-axis and y-axis look a bit bolder or somehow distinct from other grids?
Somehow I want it to look like this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我能想到的最愚蠢的事情就是用 LineWidth = 2 画一条线
虽然它有一些明显的缺点,比如它在某个地方结束。
The stupidest thing I can think of is drawing a line with LineWidth = 2
Though it has some obvious disadvantages, like that it ends at some place.
查看
hline
和vline
来自 MATLAB 文件交换。它可以让您在任何给定点绘制水平和垂直线,并将这些线延伸到无穷大(因此重做轴仍将保持在整个绘图上绘制的线)。如果您需要绘制到特定句柄,这里有一个高级hline
/vline
。Check out
hline
andvline
from the MATLAB File Exchange. It will let you draw horizontal and vertical lines at any given point and extend those lines to infinity (so redoing axes will still keep the lines drawn all the away across your plot). If you need to draw to specific handles, here's an advancedhline
/vline
.