offsetAxes(ax)

Offset axes, mimicks Seaborn's 'despine' option for plotting

現在この提出コンテンツをフォロー中です。

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 (2026). offsetAxes(ax) (https://jp.mathworks.com/matlabcentral/fileexchange/52351-offsetaxes-ax), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: plotboxpos

ヒントを与えたファイル: despline

カテゴリ

Help Center および MATLAB AnswersCall Python from MATLAB についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
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