views:

288

answers:

1

I use matplotlib 0.99

so, I can`t change width of border of subplot.. how can I do it?

code like it:

fig = plt.figure(figsize = (4.1, 2.2))
ax = fig.add_subplot(111)
and then,
ax.patch.set _ linewidth(0.1) or
ax.get _ frame().set _ linewidth(0.1) doesn`t work!

but legend.get _ frame().set _ linewidth(0.1) works fine.

+2  A: 

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()]
Mark