with plt.xkcd():
    #This figure will be in XKCD-style
    #...

#This figure will be in regular style
fig2 = plt.figure()

More at matplotlib

Sample