# Here are some matplotlib style settings that I (JSW) find useful for publication-quality plots # First, we set the width of a figure to be exactly the width of a single column in PRL or PRD (in # inches), and set the aspect ratio to be 4:3. rc('figure', figsize=(3.375, 3.375*(.75)), titlesize=10) # This line sets the resolution (number of dots per inch) for saving figures to raster formats like # PNG. It's mainly useful to set the size of the figures displayed in the webbrowser in the Jupyter # or IPython notebook rc('savefig', dpi=180) # The default for scatter plots is to put three points in each legend entry. Usually one is # sufficient. rc('legend', scatterpoints=1, fontsize=10, frameon=False) # We would like the text to be created using TeX, so we get full support for LaTeX math syntax. rc('text', usetex=True) rc('text.latex', unicode=True) # We want all the text to be Computer Modern, and 10pt. This way, combined with the correct setting # of the size of the figure, the text in the figure will exactly match the text in the rest of the # manuscript. rc('font', size=10, family='serif', weight='normal', serif=['Computer Modern Roman']) rc('axes', labelsize=10, titlesize=10, labelweight='normal') rc('xtick', labelsize=10) rc('ytick', labelsize=10)