So I am creating two simples bar graphs in matplotlib and I need to cite where I got the data from. Is there a function that allows me to do this?
You can use .annotate()
to cite your source at the foot of your plot. Example:
import matplotlib.pyplot as plt
plt.annotate('[your citation here]', (0,0), (-80,-20), fontsize=6,
xycoords='axes fraction', textcoords='offset points', va='top')
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