I am trying to add these tiny bubbles at the end of line plots. How to do that in matplotlib?
You could try with plt.plot.markevery
:
import numpy as np
import matplotlib.pyplot as plt
delta = 0.11
x = np.linspace(0, 10 - 2 * delta, 200) + delta
y = np.sin(x) + 1.0 + delta
plt.plot(x,y,'o',ls='-', ms=8,markevery=[-1])
Output:
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