Why does the BODE function in the Control System Toolbox not propagate the line width of my axes to the phase plot?

5 views (last 30 days)
I create axes on a figure and set the line width of the axes to 2.0 by typing the following at the MATLAB command prompt:
set(gca,'linewidth',2.0)
Then, I make a Bode plot of a system, by the following command:
bode(tf([1 1],[1 2 1]));
My BODE plot only retains the line width of my axes lines on the magnitude plot, but my phase plot axis line width has the default value of 0.5.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This enhancement has been incorporated in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds:
This has been verified as a bug in the Control System Toolbox in the way that BODE handles current axes properties.
Currently, to work around this issue, try the following directly after using the BODE function:
current_axis = gca;
h = findall(gcf,'type','axes','visible','on');
set(h,'linewidth',2.0);
axes(current_axis);

More Answers (0)

Community Treasure Hunt

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

Start Hunting!