<jupyter_start><jupyter_text>Copyright 2021 <NAME> <EMAIL>   Alternate: <EMAIL> & <EMAIL>    July 31th, 2021 Codecademy - Sublime Limes' Line Graphs Skill Path: Analyze Data with Python  Section: Data Visualization with Matplotlib  Topic: Introduction to Matplotlib  Assignment ContextThis mini-project is meant to be a demonstration that I have learned the introductory concepts of plotting line graphs with matplotlib. It is the first project of a lesson on visualizing data with Python by using pyplot from matplotlib.This is the first mini-project of a assignments while learning matplotlib.  Assignment Description"In this project, you will be acting as a data analyst for an online lime retailer called Sublime Limes. People all over the world can use this product to get the freshest, best-quality limes delivered to their door. One of the product managers at Sublime Limes would like to gain insight into the customers and their sales habits. Using Matplotlib, you'll create some different line graphs (or maybe, lime graphs) to communicate this informaiton effectively."<jupyter_code># SETUP PROVIDED BY CODECADEMY FOR PROJECT
from matplotlib import pyplot as plt

months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]

visits_per_month = [9695, 7909, 10831, 12942, 12495, 16794, 14161, 12762, 12777, 12439, 10309, 8724]

# numbers of limes of different species sold each month
key_limes_per_month = [92.0, 109.0, 124.0, 70.0, 101.0, 79.0, 106.0, 101.0, 103.0, 90.0, 102.0, 106.0]
persian_limes_per_month = [67.0, 51.0, 57.0, 54.0, 83.0, 90.0, 52.0, 63.0, 51.0, 44.0, 64.0, 78.0]
blood_limes_per_month = [75.0, 75.0, 76.0, 71.0, 74.0, 77.0, 69.0, 80.0, 63.0, 69.0, 73.0, 82.0]
# create your figure here
# Instructed to make figure 12 x 8 (width by height)
plt.figure(figsize=(12, 8))

# requested to create two charts in the figure
ax1 = plt.subplot(1, 2, 1)

# asked to plot total page visits over the past year as a line
x_values = range(len(months))
plt.plot(x_values, visits_per_month, marker = "*", label = "Visits Per Month")
plt.xlabel("Month")
plt.ylabel("Visits to Sublime Limes Site")
ax1.set_xticks(x_values)
ax1.set_xticklabels(months)
plt.title("Visits to Sublime Limes' Website per Month")

ax2 = plt.subplot(1, 2, 2)

#going to plot three lines on the same set of axes
plt.plot(x_values, key_limes_per_month, color = 'CadetBlue', label="Key Limes")
plt.plot(x_values, persian_limes_per_month, color = "Coral", label="Persian Limes")
plt.plot(x_values, blood_limes_per_month, color = "DarkSeaGreen", label="Blood Limes")

plt.legend()
ax2.set_xticks(x_values)
ax2.set_xticklabels(months)
plt.xlabel("Month")
plt.ylabel("Limes Sold")
plt.title("Sales of Limes by Lime Type")

plt.subplots_adjust(bottom = 0.2, wspace = 0.25)

plt.savefig("SublimeLimes_VisitsSales.png")

plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11138183083884441, 'fraction_numerical': 0.07170205360250609, 'mean_word_length': 5.088983050847458, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '395476', 'license': 'MIT', 'n_tokens_mistral': 1179, 'n_tokens_neox': 997, 'n_words': 358, 'path': 'IntroToMatplotlib/Codecademy-SublimeLimesLineGraphs.ipynb', 'repo_name': 'pdvnny/Codecademy-AnalyzeDatawithPython', 'size': '2910'}