Cartoonish style plots in MATLAB or Python?
Question: There is an excellent post on [Mathematica
here](http://mathematica.stackexchange.com/questions/11350/xkcd-style-graphs)
on how to make plots and graphs more cartoony and warm to an audience.

I was wondering if anyone knows of similar ways we can do this in either
MATLAB, or possibly python. Is something like this possible? (It is also known
as xkcd-style plots)


Answer: Yes there is (in Python at least)!

here's a simple example (basically ripped from a pyplot tutorial):

    
    
    import numpy as np
    import matplotlib.pyplot as plt
    
    # evenly sampled time at 200ms intervals
    t = np.arange(0., 5., 0.2)
    
    plt.xkcd(scale=1, length=100, randomness=2)
    
    plt.plot(t, t, 'r', t, t**2, 'b', t, t**3, 'g')
    plt.show()
    

just make sure you have a recent enough version of matplotlib and you should
be good to go

here's the docs on the xkcd function -
<http://matplotlib.org/api/pyplot_api.html?highlight=xkcd#matplotlib.pyplot.xkcd>

when I run the code above on my computer I see:

![enter image description here](http://i.stack.imgur.com/ktl6j.png)

