Back

setp method

Created 11 mons ago
48 Views
1 Comments
vigneshKQRWyq
@vigneshKQRWyq
vigneshKQRWyq
@vigneshKQRWyqProfile is locked. Login

How to set different line colors and line style using setp method

example code:

x_1 = np.arange(10)

y_1 = np.random.randn(10)

y_2 = np.random.randn(10)

y_3 = np.random.randn(10)

lines = plt.plot(x_1,y_1, x_1,y_2, x_1,y_3)

plt.setp(lines, color='g', linewidth=2, linestyle='--')

Comments
Please login to comment.