Create image axis with the origin in the centre

1 回表示 (過去 30 日間)
Kyle Wang
Kyle Wang 2015 年 4 月 12 日
コメント済み: Kyle Wang 2015 年 4 月 13 日
Dear expert, I'm struggling at making a boxed axis around an image with the custom axis tick labels as seen in the sample.
The x-axis is on top with the origin at a specific position (not in the middle). Then the x-axis tick labels increase at both direction towards the top corners, which is like 50 40 30 20 10 0 10 20 30 40 50.
The y-axis sits at two edges of the box, starting from 0 and counting downwards until touching the end of the bottom corners.
Please suggest any clue to draw such axis. Many thanks

採用された回答

pfb
pfb 2015 年 4 月 12 日
編集済み: pfb 2015 年 4 月 12 日
For the double y axis, see this answer to a similar question.
For the xaxis on top, look at the XaxisLocation property of the axes.
As to the position and labels of the ticks, see the xtick, xticklabel, ytick, yticklabel properties of the axes (look for axis properties in the documentation).
  1 件のコメント
Kyle Wang
Kyle Wang 2015 年 4 月 13 日
plotyy, and multiple axis could also be applicable.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by