<jupyter_start><jupyter_text>Plotting<jupyter_code>import matplotlib.pyplot as plt
%matplotlib inline
font = {'weight' : 'bold',
        'size'   : 22}

plt.rc('font', **font)

#set ggplot style
plt.style.use('ggplot')
# new_df
col_list = [x for x in new_df.columns if x != 'date']
def log_plot(tmp, col):
    fig, ax = plt.subplots(figsize=(20,10))
    for country in tmp.country.unique():
        new_col = country.lower() + '_' + col
        
        tmp[country.lower() + '_' + col] = tmp[[col]]
        tmp.rename(columns={col: new_col})
        tmp[tmp.country == country].groupby(['day'])[[new_col]].sum().plot(ax=ax)
        ax.set_yscale('log', basey=10)
        ax.set_color_cycle([cm(1.*i/NUM_COLORS) for i in range(NUM_COLORS)])
    
    fig = ax.get_figure()
    fig.savefig(os.path.join(image_dir, create_save_file(col, 'log')))

for col in ['confirmed', 'recovered', 'deaths']:
    log_plot(new_df, col)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17721518987341772, 'fraction_numerical': 0.00949367088607595, 'mean_word_length': 3.698019801980198, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '323945', 'license': 'MIT', 'n_tokens_mistral': 374, 'n_tokens_neox': 364, 'n_words': 67, 'path': 'notebooks/log.ipynb', 'repo_name': 'kant/covidify', 'size': '948'}