Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bode plot line weight

1,098 views
Skip to first unread message

Becky J.

unread,
Sep 30, 2009, 10:20:04 AM9/30/09
to
Hi,

I am trying to increase the line weight for bode. I have a figure I need to project in a presentation, and the default line weight is too thin. Basically the blue line needs to be thicker, and I can't do it manually. I am holding this figure and plotting two other bodes on top of it, so those lines will have to be the same thickness. I have this so far...

figure(1)
hold on
P = bodeoptions;
P.Grid = 'on';
P.PhaseUnits = 'deg';
P.FreqScale = 'log';
P.MagUnits = 'dB';
P.MagScale = 'linear';
bode(servo_sys,w_array,P);
bode(other stuff)
bode(other stuff2)
hold off

I have tried getting the children of figure 1, and looking through for the property but it is not recongnized. They have line width (the grid lines), but not line weight...

Craig Buhr

unread,
Sep 30, 2009, 10:32:14 AM9/30/09
to
Hi Becky,

In R2008b and beyond. Click the "plot edit" toolbar button (the one that
looks like an arrow), select the line and right click and you should see
options to change the line properties such as thickness.

-craig

"Becky J." <rebecca...@gmail.com> wrote in message
news:h9vpej$b1h$1...@fred.mathworks.com...

Becky J.

unread,
Sep 30, 2009, 10:42:02 AM9/30/09
to
I can't do it manually, I have to write a script for submission. That would be a last alternative because with so many plots it would be very tedious...

Iyad

unread,
Sep 30, 2009, 11:00:22 AM9/30/09
to
Becky,

Try this... After you create your bode plots, execute the following lines of code:

h = findobj(gcf,'type','line');
set(h,'linewidth',2);

I just tried it and it worked for me. Let me know if it works for you.

Becky J.

unread,
Sep 30, 2009, 11:09:02 AM9/30/09
to
Yes, that worked perfectly! Thank you!

Ameya Ramadurgakar

unread,
Aug 10, 2016, 4:38:09 PM8/10/16
to
This still works. Thank you! - R2016b


"Iyad" wrote in message <h9vrq6$k8g$1...@fred.mathworks.com>...
0 new messages