From b9a9ffad11b0387038f9a7c4e62a481a0dd36085 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Sat, 30 Apr 2016 18:42:42 +0200 Subject: [PATCH] Emphasize title. Closes #22 --- Examples.ipynb | 4 ++-- replot/figure.py | 1 + replot/helpers/custom_mpl.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Examples.ipynb b/Examples.ipynb index f026875..27d825d 100644 --- a/Examples.ipynb +++ b/Examples.ipynb @@ -7192,7 +7192,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 21, "metadata": { "collapsed": false, "scrolled": false @@ -7965,7 +7965,7 @@ { "data": { "text/html": [ - "" + "" ], "text/plain": [ "" diff --git a/replot/figure.py b/replot/figure.py index 121b7fc..f294873 100644 --- a/replot/figure.py +++ b/replot/figure.py @@ -567,6 +567,7 @@ class Figure(): render_helpers.set_axis_property(group_, set_ylabel, self.ylabel) # Set title render_helpers.set_axis_property(group_, axis.set_title, self.title) + axis.title.set_position((0.5, 1.05)) # Put padding between title and figure # Set legend render_helpers.set_axis_property( group_, diff --git a/replot/helpers/custom_mpl.py b/replot/helpers/custom_mpl.py index 40c820e..3cf40e3 100644 --- a/replot/helpers/custom_mpl.py +++ b/replot/helpers/custom_mpl.py @@ -54,7 +54,7 @@ def _rc_scaling(): # Set misc font sizes "font.size": 12, "axes.labelsize": 11, - "axes.titlesize": 12, + "axes.titlesize": 14, "xtick.labelsize": 10, "ytick.labelsize": 10, "legend.fontsize": 10,