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...
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...
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.