Skip to content

Instantly share code, notes, and snippets.

@ultimatile
Created December 25, 2019 07:15
Show Gist options
  • Save ultimatile/f20f5e232afadd9d5259da9afbd13019 to your computer and use it in GitHub Desktop.
Save ultimatile/f20f5e232afadd9d5259da9afbd13019 to your computer and use it in GitHub Desktop.
import numpy as np
import matplotlib.pyplot as plt
from sys import argv
from numpy.random import rand, randn
fig = plt.figure(figsize=(8, 6))
print(plt.rcParams['font.family'])
plt.rcParams['font.family'] = "Harrington"
samples = 100
x = rand(100)
y = rand(100)
ax = fig.add_subplot(111)
ax.scatter(x, y)
plt.show()
#from matplotlib.backends.backend_pdf import PdfPages
#pp = PdfPages('TvsJefff.pdf')
#pp.savefig(fig)
#pp.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment