In [1]:
%matplotlib inline
from ggplot import *
import numpy as np

qplot

qplot (or "quickplot") is short-hand syntax for ggplot. It allows you do to things like plot python lists and numpy arrays, make histograms, scatterplots, and other generic, often-used plots.


In [2]:
qplot(diamonds.price)


Out[2]:
<ggplot: (281105401)>

In [3]:
qplot(diamonds.carat, diamonds.price)


Out[3]:
<ggplot: (274640233)>

In [4]:
x = range(100)
y = range(100)
qplot(x, y)


Out[4]:
<ggplot: (284489433)>

In [5]:
qplot(np.random.normal(0, 1, 10000))


Out[5]:
<ggplot: (285671789)>

In [ ]: