is it possible when we use plot command, automatically be on Data Cursor( and some other things)?

1 回表示 (過去 30 日間)
is it possible when we use plot command, automatically these things happens:
1-being on Data Cursor
2-plot x from 0 to 10000 and y from 0 to 700
3-axes properties being active
4-figure window was full maximize
5-grid being on

採用された回答

Oleg Komarov
Oleg Komarov 2011 年 9 月 8 日
No.
After plotting:
  1. call datacursormode
  2. xlim, ylim or set(gca,'Xlim',[0 1e4],'Ylim',[0 700])
  3. What do you mean?
  4. I suggest WindowAPI from FEX but you can use manual set(gcf,'Position',[...]) after having retrieved the dimension of the screen with fullscreen = get(0,'ScreenSize')
  5. grid or set(gca,'grid','on') which you can call all at once with point 2.
  2 件のコメント
mohammad
mohammad 2011 年 9 月 8 日
thanks a lot
so nice
3-in edit Tab (in figure) there is axes properties that its needed being selected automatically at first
Oleg, please explain more about set(gcf,'Position',[...]) fullscreen = get(0,'ScreenSize')
Oleg Komarov
Oleg Komarov 2011 年 9 月 9 日
For 3, use get/inspect(gca) and then set the property you need.
gcf returns the handle to current figure (while gca to the current axes). 0 is the root handle which contains some general properties like the screensize. The concept is that you want to set the position property to the size of the screen.
For additional details refer to the figure, axes properties in the documentation, look for position.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by