Plot updated only after opening the PropertyEditor and mousebutton on object

I want to use the plot command Nyquistplot, and customize the plot via the command line.
h=nyquistplot(rss(2))
h.Responses.Style.Markers={'o'}
h.Responses.Style.LineWidth=3
The modification is not displayed, though it is updated immediately after opening the PropertyEditor and clicking on the curve.
Does somebody know how to update it without the mouse-click?
Cheers Sjoerd

1 件のコメント

Sjoerd
Sjoerd 2011 年 4 月 28 日
Note: the structure p=getoptions(h) does only cover settings that concern axes & title but NOT the data itself.
The field 'Responses' is not part of the structured variable obtained from p=getoptions(h)
Unfortunatelye, the solution of Matt Fig is not possible.

回答 (2 件)

Walter Roberson
Walter Roberson 2011 年 4 月 27 日
drawnow()
might work.
Matt Fig
Matt Fig 2011 年 4 月 27 日
p = getoptions(h);
p.Responses.Style.Markers = 'o';
p.Responses.Style.LineWidth = 3;
setoptions(h,p);
Assuming those fields you are using are valid...

この質問は閉じられています。

質問済み:

2011 年 4 月 27 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by