import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from numpy.random import randn
from pandas import Series, DataFrame
from matplotlib import rcParams
%matplotlib inline
rcParams['figure.figsize'] = 5,4
x = range(1, 20)
y = range(1, 20)
fig = plt.figure()
# [left, bottom, width, height]
ax = fig.add_axes([.1, .1, 1, 1])
ax.plot(x,y)
[<matplotlib.lines.Line2D at 0x20c345c5b80>]
fig = plt.figure()
# [left, bottom, width, height]
ax = fig.add_axes([.1, .1, 1, 1])
ax.set_xlim([0,20])
ax.set_ylim([0,20])
ax.grid()
ax.plot(x,y)
[<matplotlib.lines.Line2D at 0x20c34c55100>]
a = randn(5)
a
array([-0.25838667, -0.18113444, -0.92918232, -0.351909 , -0.09879546])