i have image containing 4 subplots:
#!/usr/bin/env python3
import matplotlib.pyplot as plt
f, axarr = plt.subplots(2, 2)
axarr[0,1].stem([1,3,-4],linefmt='b-', markerfmt='bs', basefmt='k-')
plt.show()
I want to change the linewidth of one plot (stem plot). Is there an easy way to do this?
Here is my solution:
markerline, stemlines, baseline = plt.stem(x, y)
plt.setp(stemlines, 'linewidth', 3)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With