버전 (799 Bytes) 작성자: Anne Urai
Offset axes, mimicks Seaborn's 'despine' option for plotting

다운로드 수: 683

업데이트 날짜: 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 (2023). 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!
버전 게시됨 릴리스 정보

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

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

Added screenshot, slack values adjusted for 4x4 subplot