Created
April 15, 2016 17:25
-
-
Save willettk/1fe794dafeb83f3e902427fb1b089f9b to your computer and use it in GitHub Desktop.
Thesis beer relation. Inspired by https://twitter.com/kwwillett/status/721021577706516481
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
from matplotlib import pyplot as plt | |
import numpy as np | |
pages = np.arange(500)+1 | |
gt = pages / 10. | |
py = 2.5 * np.log10(pages) | |
fig = plt.figure(figsize=(8,8)) | |
ax = fig.add_subplot(111) | |
ax.plot(pages,gt,color='red',label='@astrogrant') | |
ax.plot(pages,py,color='blue',label='@PeterYoachim') | |
ax.set_xlabel("Pages in thesis",fontsize=20) | |
ax.set_ylabel("Number of thesis beers",fontsize=20) | |
plt.legend(loc='upper left') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment