def create_activity_graphs(dates, battles_xbox, battles_ps, players_xbox, players_ps, newplayers_dates, newplayers_xbox, newplayers_ps, averages_xbox, averages_ps, watermark_text='@WOTC_Tracker'):
    shifted_dates = [(datetime.strptime(d, '%Y-%m-%d') - timedelta(days=1)).strftime('%Y-%m-%d') for d in dates]
    plt.clf()
    fig = plt.figure(figsize=(11, 8), dpi=150)
    fig.suptitle('Active Accounts Per Platform')
    ax1 = fig.add_subplot(111)
    ax1.tick_params(axis='x', labelrotation=45)
    ax1.ticklabel_format(useOffset=False, style='plain')
    ax1.set_xticklabels(shifted_dates, ha='right')
    ax1.plot(shifted_dates, players_xbox, color='green', linewidth=2, label='Xbox')
    ax1.plot(shifted_dates, players_ps, color='blue', linewidth=2, label='Playstation')
    ax1.grid()
    ax1.legend()
    ax1.text(0.5, 1.05, watermark_text, horizontalalignment='center', verticalalignment='center', transform=ax1.transAxes)
    fig.savefig(PLAYERS_PNG)
    del fig
    plt.clf()
    fig = plt.figure(figsize=(11, 8), dpi=150)
    fig.suptitle('Total Battles Per Platform')
    ax1 = fig.add_subplot(111)
    ax1.tick_params(axis='x', labelrotation=45)
    ax1.ticklabel_format(useOffset=False, style='plain')
    ax1.set_xticklabels(shifted_dates, ha='right')
    ax1.plot(shifted_dates, battles_xbox, color='green', linewidth=2, label='Xbox')
    ax1.plot(shifted_dates, battles_ps, color='blue', linewidth=2, label='Playstation')
    ax1.grid()
    ax1.legend()
    ax1.text(0.5, 1.05, watermark_text, horizontalalignment='center', verticalalignment='center', transform=ax1.transAxes)
    fig.savefig(BATTLES_PNG)
    del fig
    plt.clf()
    fig = plt.figure(figsize=(11, 8), dpi=150)
    fig.suptitle('New Accounts Per Platform')
    ax1 = fig.add_subplot(111)
    ax1.tick_params(axis='x', labelrotation=45)
    ax1.ticklabel_format(useOffset=False, style='plain')
    ax1.set_xticklabels(dates, ha='right')
    ax1.plot(newplayers_dates, newplayers_xbox, color='green', linewidth=2, label='Xbox')
    ax1.plot(newplayers_dates, newplayers_ps, color='blue', linewidth=2, label='Playstation')
    ax1.grid()
    ax1.legend()
    ax1.text(0.5, 1.05, watermark_text, horizontalalignment='center', verticalalignment='center', transform=ax1.transAxes)
    fig.savefig(NEWPLAYERS_PNG)
    del fig
    plt.clf()
    fig = plt.figure(figsize=(11, 8), dpi=150)
    fig.suptitle('Average Battles Played Per Account Per Platform')
    ax1 = fig.add_subplot(111)
    ax1.tick_params(axis='x', labelrotation=45)
    ax1.ticklabel_format(useOffset=False, style='plain')
    ax1.set_xticklabels(shifted_dates, ha='right')
    ax1.plot(shifted_dates, averages_xbox, color='green', linewidth=2, label='Xbox')
    ax1.plot(shifted_dates, averages_ps, color='blue', linewidth=2, label='Playstation')
    ax1.grid()
    ax1.legend()
    ax1.text(0.5, 1.05, watermark_text, horizontalalignment='center', verticalalignment='center', transform=ax1.transAxes)
    fig.savefig(AVERAGE_PNG)
    del fig
def create_activity_graphs(dates, battles_xbox, battles_ps, players_xbox, players_ps, newplayers_dates, newplayers_xbox, newplayers_ps, averages_xbox, averages_ps, watermark_text='@WOTC_Tracker'):
    shifted_dates = [(datetime.strptime(d, '%Y-%m-%d') - timedelta(days=1)).strftime('%Y-%m-%d') for d in dates]
    plt.clf()
    fig = plt.figure(figsize=(11, 8), dpi=150)
    fig.suptitle('Active Accounts Per Platform')
    ax1 = fig.add_subplot(111)
    ax1.tick_params(axis='x', labelrotation=45)
    ax1.ticklabel_format(useOffset=False, style='plain')
    ax1.set_xticklabels(shifted_dates, ha='right')
    ax1.plot(shifted_dates, players_xbox, color='green', linewidth=2, label='Xbox')
    ax1.plot(shifted_dates, players_ps, color='blue', linewidth=2, label='Playstation')
    ax1.grid()
    ax1.legend()
    ax1.text(0.5, 1.05, watermark_text, horizontalalignment='center', verticalalignment='center', transform=ax1.transAxes)
    fig.savefig(PLAYERS_PNG)
    del fig
    plt.clf()
    fig = plt.figure(figsize=(11, 8), dpi=150)
    fig.suptitle('Total Battles Per Platform')
    ax1 = fig.add_subplot(111)
    ax1.tick_params(axis='x', labelrotation=45)
    ax1.ticklabel_format(useOffset=False, style='plain')
    ax1.set_xticklabels(shifted_dates, ha='right')
    ax1.plot(shifted_dates, battles_xbox, color='green', linewidth=2, label='Xbox')
    ax1.plot(shifted_dates, battles_ps, color='blue', linewidth=2, label='Playstation')
    ax1.grid()
    ax1.legend()
    ax1.text(0.5, 1.05, watermark_text, horizontalalignment='center', verticalalignment='center', transform=ax1.transAxes)
    fig.savefig(BATTLES_PNG)
    del fig
    plt.clf()
    fig = plt.figure(figsize=(11, 8), dpi=150)
    fig.suptitle('New Accounts Per Platform')
    ax1 = fig.add_subplot(111)
    ax1.tick_params(axis='x', labelrotation=45)
    ax1.ticklabel_format(useOffset=False, style='plain')
    ax1.set_xticklabels(dates, ha='right')
    ax1.plot(newplayers_dates, newplayers_xbox, color='green', linewidth=2, label='Xbox')
    ax1.plot(newplayers_dates, newplayers_ps, color='blue', linewidth=2, label='Playstation')
    ax1.grid()
    ax1.legend()
    ax1.text(0.5, 1.05, watermark_text, horizontalalignment='center', verticalalignment='center', transform=ax1.transAxes)
    fig.savefig(NEWPLAYERS_PNG)
    del fig
    plt.clf()
    fig = plt.figure(figsize=(11, 8), dpi=150)
    fig.suptitle('Average Battles Played Per Account Per Platform')
    ax1 = fig.add_subplot(111)
    ax1.tick_params(axis='x', labelrotation=45)
    ax1.ticklabel_format(useOffset=False, style='plain')
    ax1.set_xticklabels(shifted_dates, ha='right')
    ax1.plot(shifted_dates, averages_xbox, color='green', linewidth=2, label='Xbox')
    ax1.plot(shifted_dates, averages_ps, color='blue', linewidth=2, label='Playstation')
    ax1.grid()
    ax1.legend()
    ax1.text(0.5, 1.05, watermark_text, horizontalalignment='center', verticalalignment='center', transform=ax1.transAxes)
    fig.savefig(AVERAGE_PNG)
    del fig