Hello.
I've only seen one way to use the xkcd feature. This uses a with statement.
Is there another way to use the xkcd feature so as to easily switch between
exact plot and trembling one ?
Christophe BAL
--
Meet PCI DSS
That's what the `with` statement allows you do.
Say you have a function that does some plotting and returns a figure --
call it my_plot_func.
You can do:
fig1 = my_plot_func()
fig1.savefig('normal1.png')
with plt.xkcd():
fig2 = mu_plot_func()
fig2.savefig('xkcd.png')
fig2 = my_plot_fun