How to change axes linewidth?
Show older comments
Is it possible to control linewidth of axis and tics?
Answers (4)
Azzi Abdelmalek
on 30 Mar 2016
14 votes
set(gca,'linewidth',6)
Lightonz
on 26 May 2020
Get the handle of the Axes and change all you want:
H=gca;
H.LineWidth=1; %change to the desired value
dpb
on 30 Mar 2016
0 votes
Anmol Pardeshi
on 18 Feb 2020
0 votes
go to edit -> axes properties and this will open up a property inspector. within this select "box styling" option and see the value for "LineWidth". By changing this, you will be able to change the thickness of the axes in the figure.
1 Comment
Susan Eden
on 17 Jan 2024
Thankyou very much. You saved me.
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!