Discussion:
Semilog plot line thickness
(too old to reply)
Srikanth
2008-05-25 22:26:04 UTC
Permalink
Hi
I want to set the thickness of the lines in a semilogx plot (I am
plotting three curves on the same plot) automatically - the plots are
generated in an m file, and I don't want to go via the property editor
sheet to change the lines thicknesses individually.
Any ideas?
Thanks
Srikanth
Paul
2008-05-25 23:14:02 UTC
Permalink
Post by Srikanth
Hi
I want to set the thickness of the lines in a semilogx
plot (I am
Post by Srikanth
plotting three curves on the same plot) automatically -
the plots are
Post by Srikanth
generated in an m file, and I don't want to go via the
property editor
Post by Srikanth
sheet to change the lines thicknesses individually.
Any ideas?
Thanks
Srikanth
just change the 'linewidth' property.
Srikanth
2008-05-26 02:28:27 UTC
Permalink
I tried that, but I got an error - I used
semilogx(w,m1,'b','LineWidth',2,w,m2,'k',w,m3,'r'); but I got an
error message that strings are not supported for semilogx (and I went
through the documentation and found an article which I interpreted to
mean that LineWidth doesn't go with semilogx).
Any other ideas?
Thanks
Srikanth
Post by Srikanth
Post by Srikanth
Hi
I want to set the thickness of the lines in a semilogx
plot (I am
Post by Srikanth
plotting three curves on the same plot) automatically -
the plots are
Post by Srikanth
generated in an m file, and I don't want to go via the
property editor
Post by Srikanth
sheet to change the lines thicknesses individually.
Any ideas?
Thanks
Srikanth
just change the 'linewidth' property.
Paul
2008-05-26 02:51:01 UTC
Permalink
Post by Srikanth
I tried that, but I got an error - I used
semilogx(w,m1,'b','LineWidth',2,w,m2,'k',w,m3,'r');
but I got an
Post by Srikanth
error message that strings are not supported for semilogx
(and I went
Post by Srikanth
through the documentation and found an article which I
interpreted to
Post by Srikanth
mean that LineWidth doesn't go with semilogx).
Any other ideas?
Thanks
Srikanth
Post by Srikanth
Post by Srikanth
Hi
I want to set the thickness of the lines in a semilogx
plot (I am
Post by Srikanth
plotting three curves on the same plot) automatically -
the plots are
Post by Srikanth
generated in an m file, and I don't want to go via the
property editor
Post by Srikanth
sheet to change the lines thicknesses individually.
Any ideas?
Thanks
Srikanth
just change the 'linewidth' property.
grap the plot handle and change it.

h = semilogx(bla,bla,bla);
set(h,'linewidth',3)
Srikanth
2008-05-26 04:18:33 UTC
Permalink
Thanks, that worked!

Loading...