This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This files creates a pyplot bar graph and shows a tooltip at the middle of a bar when it is hovered. | |
# Licenced under CC0 1.0 Universal Public Domain Dedication | |
# adapted from https://stackoverflow.com/a/47166787/5433628 | |
import matplotlib.pyplot as plt | |
# input data | |
x = [2010, 2011, 2012, 2013] | |
y = [13, 17, 42, 4] |