figure toolbar/menu overlaps part of figure

i create a figure of a certain size (sizeX, sizeY), with units inches (in this case).
i'm putting a title at the top of the figure using its own axes and text(): but if i put the axes at 'Position',[0 sizeY-0.5 sizeX 0.1944] after setting its units to inches, the axes (with visible turned on) are just BARELY below the figure menu/toolbar. the axes are maybe? 0.5" below the windowmanager titlebar.
are the menu/toolbars INSIDE a figure?
i wish i could post images in here. ideas? thanks

2 件のコメント

Jan
Jan 2011 年 12 月 7 日
Please post the code, which reproduces the problem, such that we can run it. Of course you can set the text outside the visible area. But the toolbar and the menu are not part of the standard figure area.
Jan
Jan 2011 年 12 月 7 日
To embed pictures: http://www.mathworks.com/matlabcentral/answers/243-how-do-i-post-a-picture-with-my-question

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

 採用された回答

Jan
Jan 2011 年 12 月 7 日

0 投票

The position of the text depends on:
  • position and units of the AXES
  • position and units of the TEXT
  • HoriztalAlignment and VerticalAlignment of the TEXT
  • Margin of the TEXT
  • The string, if it contains empty lines, line breaks etc.
Please post your code to reveal the cause of your problems.

その他の回答 (1 件)

Eric
Eric 2011 年 12 月 7 日

0 投票

many thanks, all. seems someone snuck an outerPosition setting for that axes into the code...

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

質問済み:

2011 年 12 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by