Lots of book formatting changes.

Changed default sizes of plots, changed the book template for
pdf creation, and lots of minor edits, most changing bold to
italic, and removing italic for emphasis.
This commit is contained in:
Roger Labbe
2015-11-26 13:08:40 -08:00
parent d2f8747c36
commit 3e65b5d2f7
19 changed files with 1069 additions and 1093 deletions

View File

@@ -67,7 +67,7 @@ def equal_axis():
def reset_axis():
pylab.rcParams['figure.figsize'] = 11, 4
pylab.rcParams['figure.figsize'] = 11, 3
def set_figsize(x=11, y=4):
pylab.rcParams['figure.figsize'] = x, y
@@ -135,7 +135,6 @@ def load_style(directory = '.', name='code/custom.css'):
if version[0] > 1 or (version[0] == 1 and version[1] >= 5):
style["axes.prop_cycle"] = "cycler('color', ['#6d904f','#013afe', '#202020','#fc4f30','#e5ae38','#A60628','#30a2da','#008080','#7A68A6','#CF4457','#188487','#E24A33'])"
style.pop("axes.color_cycle", None)
plt.rcParams.update(style)
reset_axis ()
np.set_printoptions(suppress=True)