<jupyter_start><jupyter_text>Styling: Colors, Themes, Sizes<jupyter_code>%matplotlib notebook
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
plt.style.available
df = pd.read_csv('sales.csv', parse_dates=['Date'])
df['Month'] = df['Date'].dt.month
sales = df.groupby(['Month', 'Product'])['Amount'].sum().unstack()
sales.head()
styles={'a': ':s', 'b': '--v', 'c': '-.o'}

with plt.style.context('seaborn-dark'):
    fig, ax = plt.subplots(figsize=(6,3)) 
    for column in styles:
        sales[column].dropna().plot(ax=ax, style=styles)
        
fig.suptitle("Sales 2017", fontweight='bold')
ax.set_title("Monthly sales for products a, b and c", fontstyle='italic', fontsize='10')
ax.set_ylabel('Sales (EUR)')
ax.grid(True)
fig.tight_layout()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19472361809045227, 'fraction_numerical': 0.010050251256281407, 'mean_word_length': 5.754237288135593, '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': '629442', 'license': 'MIT', 'n_tokens_mistral': 308, 'n_tokens_neox': 295, 'n_words': 61, 'path': 'General/Styling - Colors Themes Sizes.ipynb', 'repo_name': 'NirmalSilwal/Python-', 'size': '796'}