def _create_state_for_plot(plotname):
    """Creates the state associated with a particular plot."""
    return {
        # Data to show on x-axis (data type, data source)
        f"{plotname}.xaxis.data": ("Date", "AAPL"),
        # Transformation applied to x-axis (transform type, transform param)
        f"{plotname}.xaxis.transform": ("None", 30),
        f"{plotname}.yaxis.data": ("Close", "AAPL"),
        f"{plotname}.yaxis.transform": ("None", 30),
        # Plot type (line or scatter) and plot color
        f"{plotname}.type": "line",
        f"{plotname}.color": "peru",
    }