Publication-quality matplotlib figures
We're going to go from this... ... to this Install prettyplotlib , a useful tool for graph styling sudo pip install prettyplotlib Add a new method to style the axes to prettyplotlib/util.py def styling(ax, xpad=10.0, ypad=10.0, axiswidth=2.0, axistickwidth=2.0, axiscolor="#333333"): for axis in ['bottom','left']: ax.spines[axis].set_linewidth(axiswidth) for tick in ax.get_xaxis().get_major_ticks(): tick.set_pad(xpad) tick.label1 = tick._get_text1() for tick in ax.get_yaxis().get_major_ticks(): tick.set_pad(ypad) tick.label1 = tick._get_text1() ax.get_yaxis().set_tick_params(direction='out', width=axistickwidth) ax.get_xaxis().set_tick_params(direction='out', width=axistickwidth) ...