In [1]:
# This is a code cell
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
In [2]:
# I'm using this code cell for a setting
# This one's called a "magic." That's neat.
%matplotlib inline
In [5]:
# It has its pros and cons
length = 1000
data = [str(x) for x in np.random.randint(5000,size=(length,))]
domain = list(range(length))
n=5
print(f'First {n} values of {len(data)}: {data[:n]}')
In [6]:
# But here's a plot
plt.xkcd()
plt.figure(figsize=(15,10),facecolor='white')
plt.title('This was random.')
plt.scatter(domain, data)
plt.show()
In [ ]: