<commit_before>from DataFromCSV import DataFromCSV
import matplotlib.pyplot as pl
import sys
import matplotlib.dates as mdates

if len(sys.argv) < 2:
    print "Usage: python "+sys.argv[0]+" filename.csv"
else:
    data = DataFromCSV(sys.argv[1]).getdata()
    
    date = [d.to_datetime() for d in data["Date"]]
    
    pl.plot(date,data["BeerTemp"])
    pl.plot(date,data["BeerSetting"])
    pl.plot(date,data["FridgeTemp"])
    pl.plot(date,data["FridgeSetting"])

    pl.show()
<commit_msg>x-labels are not cut off, grid makes it easier to read<commit_after>from DataFromCSV import DataFromCSV
import matplotlib.pyplot as pl
import sys
import matplotlib.dates as mdates
from matplotlib import rcParams

rcParams.update({'figure.autolayout': True})

if len(sys.argv) < 2:
    print "Usage: python "+sys.argv[0]+" filename.csv"
else:
    data = DataFromCSV(sys.argv[1]).getdata()
    
    date = [d.to_datetime() for d in data["Date"]]
    pl.title("Fermentation profile for: "+sys.argv[1])
    pl.xticks(rotation=50)
    pl.plot(date,data["BeerTemp"])
    pl.plot(date,data["BeerSetting"])
    pl.plot(date,data["FridgeTemp"])
    pl.plot(date,data["FridgeSetting"])
    pl.grid()
    pl.show()

{'fraction_non_alphanumeric': 0.1501251042535446, 'fraction_numerical': 0.007506255212677231, 'mean_word_length': 4.240174672489083, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '6132112', 'n_tokens_mistral': 435, 'n_tokens_neox': 428, 'n_words': 94}