How to change axes linewidth?

Answers (4)

Get the handle of the Axes and change all you want:
H=gca;
H.LineWidth=1; %change to the desired value
Anmol Pardeshi
Anmol Pardeshi on 18 Feb 2020
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.

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Asked:

on 30 Mar 2016

Commented:

on 17 Jan 2024

Community Treasure Hunt

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

Start Hunting!