Skip to content

Instantly share code, notes, and snippets.

@thechaudharysab
Created June 19, 2018 13:32
Show Gist options
  • Save thechaudharysab/140dfc234f6067d7cb7cdf75aa912bb7 to your computer and use it in GitHub Desktop.
Save thechaudharysab/140dfc234f6067d7cb7cdf75aa912bb7 to your computer and use it in GitHub Desktop.
Line Graph in Matplotlib with style
import random
import matplotlib.pyplot as plt
%matplotlib inline
# Create some random data
r = [random.randrange(10) for n in range(10)]
s = [random.randrange(10) for n in range(10)]
plt.plot(r, 'm*')
plt.plot(s, 'g--')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment