despline

版本 1.0.2 (3.0 KB) 作者: Tuan Pham
"despline/offset" x- and y- axis, inspired by 'offsetAxes' by Anne Urai, but taking into account log scale
22.0 次下载
更新时间 2021/1/5

查看许可证

Usage:
despline(ax, offsetfactor)
ax: axes handle
offsetfactor: can be a number or 2-element vector ([x,y])
despline(ax); % offsetfactor = 1
despline(offsetfactor) % ax = gca
despline([ax1, ax2, ...])
despline([ax1, ax2, ...], offsetfactor)
despline(fig_handle)
despline(fig_handle, offsetfactor)
despline('all') % 'all' is equil to all axes in gcf
despline('all', offsetfactor)

Inpiration: offsetAxes by Anne Urai, 2016
https://www.mathworks.com/matlabcentral/fileexchange/52351-offsetaxes-ax

Modified by Tuan Pham, 2019
- Oct 06, 2019: fixes to adapt to log scale, add offsetfactor
- Oct 25, 2019: fixes minor bugs
- Jan 04, 2021: add missing function
Note:
- For stable usage, set the limits and scales of the axes before using.
Minor ticks still unstably controlled (unnecessary minor ticks may
disappear after the first limit setting - meaning may not redrawing
minor ticks smaller than lower bound of limit)
- Currently not including Z axis

引用格式

Tuan Pham (2024). despline (https://www.mathworks.com/matlabcentral/fileexchange/72956-despline), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Polygons 的更多信息
致谢

参考作品: offsetAxes(ax)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.2

Jan 04, 2021: add missing function `get_bound` as a local function

1.0.1

fixes minor bugs about minorticks

1.0.0