From c2b948b6e0fd0c9cc8383b37b0526ba79ce7e3f0 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Sat, 16 Jul 2011 11:10:10 -0500 Subject: [PATCH] DOC: Setup plot_directive. --- doc/source/conf.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index bffc63e4..7f16ab57 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -226,22 +226,15 @@ plot_pre_code = """ import numpy as np import matplotlib.pyplot as plt np.random.seed(0) -""" -plot_include_source = False -plot_formats = [('png', 100)] - -import math -phi = (math.sqrt(5) + 1)/2 import matplotlib matplotlib.rcParams.update({ - 'font.size': 8, - 'axes.titlesize': 8, - 'axes.labelsize': 8, + 'font.size': 14, + 'axes.titlesize': 12, + 'axes.labelsize': 10, 'xtick.labelsize': 8, 'ytick.labelsize': 8, - 'legend.fontsize': 8, - 'figure.figsize': (3*phi, 3), + 'legend.fontsize': 10, 'figure.subplot.bottom': 0.2, 'figure.subplot.left': 0.2, 'figure.subplot.right': 0.9, @@ -249,3 +242,7 @@ matplotlib.rcParams.update({ 'figure.subplot.wspace': 0.4, 'text.usetex': False, }) + +""" +plot_include_source = True +plot_formats = [('png', 100)]