Adjust figure position to a negative value

5 ビュー (過去 30 日間)
Joshua
Joshua 2017 年 11 月 12 日
コメント済み: Joshua 2017 年 11 月 13 日
I use the following code to generate a figure
f = figure;
f.Position = [-0.4879 0.0333 0.4863 0.6111]
Then, I query the figure's position
>> f.Position
ans =
0 0.0333 0.4863 0.6111
It ignores the negative x-value that would position the figure in my left monitor. I drag the figure to where I want it and query the position again
>> f.Position
ans =
-0.4953 0.0333 0.4863 0.6111
Is there a way to generate the figue in the left monitor without dragging it over there?

回答 (1 件)

Jan
Jan 2017 年 11 月 12 日
  1 件のコメント
Joshua
Joshua 2017 年 11 月 13 日
Thanks Jan! I was really hoping to make the default position setting to be the left monitor. Right now, I've got something like
set(0, 'defaultFigureUnits', 'normalized')
set(0, 'defaultFigurePosition', [-0.4941 0.0312 0.4863 0.6111])
in startup.m. Any advice on how to do this with API?

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

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by