赋予轴和刻度线优先于绘制的线 [英] Give axes and tick markers priority over plotted line

查看:96
本文介绍了赋予轴和刻度线优先于绘制的线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Matlab中的默认打印行为是用要绘制的线覆盖轴和刻度线.例如,在下图中靠近原点的位置,x轴被覆盖,0.004的刻度标记也被覆盖.

The default plot behaviour in Matlab is to overwrite axes and tick marks with the line to be plotted. For instance in the figure below near the origin the x-axis is overwritten and the tick-marker for 0.004 is also overwritten.

有没有办法使坐标轴和刻度线优先于标绘线?

Is there a way to have the axes and tick marks have priority over the plotted line?

推荐答案

将轴Layer属性更改为'top'.

set(gca,'Layer','top');

这篇关于赋予轴和刻度线优先于绘制的线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆