0

I know how to make border visible/non-visible and color-full (Graph With Customized borders)

but I don't know how to change width of borders can someone help me out in this

0

1 Answer 1

4
import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(111)

for axis in ['top', 'bottom', 'left', 'right']:

ax.spines[axis].set_linewidth(2.5)  # change width
ax.spines[axis].set_color('red')    # change color

plt.show()

thin red

thick blue

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.