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 个评论

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 个)

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