offsetAxes(ax)

版本 2.0.0.0 (799 字节) 作者: Anne Urai
Offset axes, mimicks Seaborn's 'despine' option for plotting
689.0 次下载
更新时间 2016/11/9

查看许可证

In Python/Seaborn, there is the option to offset the x and y axis at the origin. This 'despine' pulls the x-axis down a bit, and the y-axis left, so that data that are close to either one become more visible. This function mimics the behaviour in a matlab plot, by changing the axis limits and covering the origin of the axes with a white line.

引用格式

Anne Urai (2024). offsetAxes(ax) (https://www.mathworks.com/matlabcentral/fileexchange/52351-offsetaxes-ax), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Call Python from MATLAB 的更多信息
标签 添加标签
致谢

参考作品: plotboxpos

启发作品: despline

Community Treasure Hunt

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

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

Thanks to Pierre Morel and http://tinyurl.com/obtuh39, I updated the function to resize 'XRuler.Axle.VertexData' and 'YRuler.Axle.VertexData', and keeping this constant when resizing using a listener.

1.2.0.0

added a user-defined option to mask data outside range
new file
Instead of only masking parts of the axes we don't wan't, also cover this part of the data with a white area (in case xdata or ydata extend beyond current axis limits). Optimized for 4x4 subplots. Added use of plotboxpos by Kelly Kearney

1.1.0.0

Added screenshot, slack values adjusted for 4x4 subplot

1.0.0.0