XKCDifyΒΆ

This notebook serves no useful purpose. It just demonstrates a cool matplotlib function which makes a plot look like a hand drawn cartoon, similar to those on xkcd. Read more at jakes post here,

http://jakevdp.github.io/blog/2013/07/10/XKCD-plots-in-matplotlib/

[1]:
import skrf as rf
%matplotlib inline
from pylab import *

from skrf.data import ring_slot

xkcd() # from matplotlib version
[1]:
<matplotlib.pyplot._xkcd at 0x7f93d81d7220>
[2]:
figure(figsize = (8,6))
ring_slot.plot_s_db(title='Important Results')
ylim(-30,30)
findfont: Font family ['xkcd', 'xkcd Script', 'Humor Sans', 'Comic Neue', 'Comic Sans MS'] not found. Falling back to DejaVu Sans.
findfont: Font family ['xkcd', 'xkcd Script', 'Humor Sans', 'Comic Neue', 'Comic Sans MS'] not found. Falling back to DejaVu Sans.
[2]:
(-30.0, 30.0)
../../_images/examples_plotting_XKCD_styling_3_2.png
[3]:
figure(figsize = (8,6))
ring_slot.plot_s_smith()
title('Important Results')

[3]:
Text(0.5, 1.0, 'Important Results')
../../_images/examples_plotting_XKCD_styling_4_1.png
[ ]: