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/

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

from skrf.data import ring_slot

xkcd() # from matplotlib version
Out[1]:
<matplotlib.pyplot.xkcd.<locals>.dummy_ctx at 0x7f5688eebbe0>
In [2]:
figure(figsize = (8,6))
ring_slot.plot_s_db(title='Important Results')
ylim(-30,30)
/home/docs/checkouts/readthedocs.org/user_builds/scikit-rf/conda/stable/lib/python3.5/site-packages/matplotlib/font_manager.py:1328: UserWarning: findfont: Font family ['xkcd', 'Humor Sans', 'Comic Sans MS'] not found. Falling back to DejaVu Sans
  (prop.get_family(), self.defaultFamily[fontext]))
Out[2]:
(-30, 30)
../../_images/examples_plotting_XKCD_styling_3_2.png
In [3]:
figure(figsize = (8,6))
ring_slot.plot_s_smith()
title('Important Results')

Out[3]:
Text(0.5,1,'Important Results')
/home/docs/checkouts/readthedocs.org/user_builds/scikit-rf/conda/stable/lib/python3.5/site-packages/matplotlib/font_manager.py:1328: UserWarning: findfont: Font family ['xkcd', 'Humor Sans', 'Comic Sans MS'] not found. Falling back to DejaVu Sans
  (prop.get_family(), self.defaultFamily[fontext]))
../../_images/examples_plotting_XKCD_styling_4_2.png
In [4]: