def set_rcParams(font_size=10, line_width=1):
    """Set rcParam of matplotlib."""
    parameters = {
        # Use LaTeX to write all text
        "text.usetex": True,
        "font.family": "serif",
        # Use 10pt font in plots, to match 10pt font in document
        "axes.labelsize": font_size,
        "font.size": font_size,
        # Make the legend/label fonts a little smaller
        "legend.fontsize": font_size,
        "xtick.major.width": 0.5,
        "xtick.labelsize": font_size - 2,
        "ytick.major.width": 0.5,
        "ytick.labelsize": font_size - 2,
        # Line properties
        "lines.linewidth": line_width,
        "axes.linewidth": 0.5,
        "grid.linewidth": 0.25,
    }
    return parameters