import matplotlib.pyplot as plt

def set_nature_style():
        plt.rcParams.update({
                        # === Font settings ===
                        "font.family": "Arial",       # Nature prefers Arial
                        "ps.fonttype": 42,
                        "pdf.fonttype": 42,
                        "font.size": 7,               # Standard Nature figure font size
                        "axes.labelsize": 7,          # Axis labels
                        "axes.titlesize": 7,          # Subplot titles
                        "xtick.labelsize": 6,         # Tick labels
                        "ytick.labelsize": 6,
                        "legend.fontsize": 6,

                        # === Figure and Axes Settings ===
                        "axes.linewidth": 0.5,        # Thin axes lines
                        "axes.labelpad": 2,           # Small padding between label and axis
                        "xtick.major.size": 2,        # Major tick size
                        "xtick.major.width": 0.5,     # Major tick width
                        "ytick.major.size": 2,
                        "ytick.major.width": 0.5,

                        # === Grid and Tick Settings ===
                        "axes.grid": False,           # No grid by default (Nature style)
                        "xtick.direction": "in",      # Ticks pointing in
                        "ytick.direction": "in",

                        # === Line and Marker Settings ===
                        "lines.linewidth": 0.75,      # Thinner lines
                        "lines.markersize": 3,        # Small markers

                        # === Legend ===
                        "legend.frameon": False,      # No box around the legend
                        "legend.framealpha": 0.0,     # Fully transparent frame
                        "legend.facecolor": "none",   # No background color
                        "legend.edgecolor": "none",
                        "legend.loc": "best",         # Optimal legend placement

                        # === Figure Size and DPI ===
                        "figure.figsize": (3.5, 2.5),  # Standard single-column Nature figure size
                        #"figure.dpi": 300,             # High-resolution for publication
                        #"savefig.dpi": 600,            # Even higher DPI for saving figures
                        "savefig.format": "pdf",       # Vector format for Nature journals
                        "savefig.bbox": "tight",       # Trim extra whitespace

        })

def set_Faraday_style():
        plt.rcParams.update({
                        # === Font settings ===
                        "font.family": "Arial",       # Nature prefers Arial
                        "ps.fonttype": 42,
                        "pdf.fonttype": 42,
                        "font.size": 9,               # Standard Nature figure font size
                        "axes.labelsize": 9,          # Axis labels
                        "axes.titlesize": 9,          # Subplot titles
                        "xtick.labelsize": 9,         # Tick labels
                        "ytick.labelsize": 9,
                        "legend.fontsize": 8,

                        # === Figure and Axes Settings ===
                        "axes.linewidth": 0.5,        # Thin axes lines
                        "axes.labelpad": 2,           # Small padding between label and axis
                        "xtick.major.size": 2,        # Major tick size
                        "xtick.major.width": 0.5,     # Major tick width
                        "ytick.major.size": 2,
                        "ytick.major.width": 0.5,

                        # === Grid and Tick Settings ===
                        "axes.grid": False,           # No grid by default (Nature style)
                        "xtick.direction": "in",      # Ticks pointing in
                        "ytick.direction": "in",

                        # === Line and Marker Settings ===
                        "lines.linewidth": 0.75,      # Thinner lines
                        "lines.markersize": 3,        # Small markers

                        # === Legend ===
                        "legend.frameon": False,      # No box around the legend
                        "legend.framealpha": 0.0,     # Fully transparent frame
                        "legend.facecolor": "none",   # No background color
                        "legend.edgecolor": "none",
                        "legend.loc": "best",         # Optimal legend placement

                        # === Figure Size and DPI ===
                        "figure.figsize": (3.5, 2.5),  # Standard single-column Nature figure size
                        #"figure.dpi": 300,             # High-resolution for publication
                        #"savefig.dpi": 600,            # Even higher DPI for saving figures
                        "savefig.format": "pdf",       # Vector format for Nature journals
                        "savefig.bbox": "tight",       # Trim extra whitespace

        })