Skip to content

Instantly share code, notes, and snippets.

@willettk
Created April 15, 2016 17:25
Show Gist options
  • Save willettk/1fe794dafeb83f3e902427fb1b089f9b to your computer and use it in GitHub Desktop.
Save willettk/1fe794dafeb83f3e902427fb1b089f9b to your computer and use it in GitHub Desktop.
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