matplotlib border width matplotlib border width python python

matplotlib border width


You want to adjust the border line size? You need to use ax.spines[side].set_linewidth(size).

So something like:

[i.set_linewidth(0.1) for i in ax.spines.itervalues()]


Maybe this is what you are looking for?

import matplotlib as mpl

mpl.rcParams['axes.linewidth'] = 0.1 #set the value globally


This worked for me [x.set_linewidth(1.5) for x in ax.spines.values()]