<jupyter_start><jupyter_text>Creating and Customizing Our First Plots<jupyter_code>from matplotlib import pyplot as plt
dev_age = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35]

dev_sal = [38496, 42000, 46752, 49320, 53200,
         56000, 62316, 64928, 67317, 68748, 73752]
plt.plot(dev_age, dev_sal)
plt.show()
plt.plot(dev_age, dev_sal)

plt.ylabel('Median Salary (USD)')
plt.xlabel('Ages')
plt.title('Median Salary (USD) by Ages')

plt.show()
py_dev_sal = [45372, 48876, 53850, 57287, 63016,
            65998, 70003, 70000, 71496, 75370, 83640]
plt.plot(dev_age, py_dev_sal)

plt.ylabel('Median Salary of Python Dev (USD)')
plt.xlabel('Ages')
plt.title('Median Salary of Python Dev (USD) by Ages')

plt.show()
plt.plot(dev_age, dev_sal)
plt.plot(dev_age, py_dev_sal)

plt.ylabel('Median Salary (USD)')
plt.xlabel('Ages')
plt.title('Median Salary (USD) by Ages')

plt.show()
plt.plot(dev_age, dev_sal)
plt.plot(dev_age, py_dev_sal)

plt.ylabel('Median Salary (USD)')
plt.xlabel('Ages')
plt.title('Median Salary (USD) by Ages')

plt.legend(['All Dev', 'Py Dev'])

plt.show()
plt.plot(dev_age, dev_sal, label='All Dev')
plt.plot(dev_age, py_dev_sal, label='Python Dev')

plt.ylabel('Median Salary (USD)')
plt.xlabel('Ages')
plt.title('Median Salary (USD) by Ages')

plt.legend()

plt.show()
plt.plot(dev_age, dev_sal, 'k--',label='All Dev')
plt.plot(dev_age, py_dev_sal, 'b', label='Python Dev')

plt.ylabel('Median Salary (USD)')
plt.xlabel('Ages')
plt.title('Median Salary (USD) by Ages')

plt.legend()
plt.show()
plt.plot(dev_age, dev_sal, color='black',linestyle='--', marker='.', label='All Dev')
plt.plot(dev_age, py_dev_sal, color='blue', marker='o', label='Python Dev')

plt.ylabel('Median Salary (USD)')
plt.xlabel('Ages')
plt.title('Median Salary (USD) by Ages')

plt.legend()
plt.show()
js_dev_y = [37810, 43515, 46823, 49293, 53437,
            56373, 62375, 66674, 68745, 68746, 74583]
plt.plot(dev_age, dev_sal,linewidth=2, color='#adad3b',label='All Dev')
plt.plot(dev_age, py_dev_sal,linestyle=':', label='Python Dev')
plt.plot(dev_age, js_dev_y,linestyle='--',color='#5a7d9a',label='JS Dev')

plt.ylabel('Median Salary (USD)')
plt.xlabel('Ages')
plt.title('Median Salary (USD) by Ages')

plt.legend()

plt.show()
plt.plot(dev_age, dev_sal,linewidth=2, color='#adad3b',label='All Dev')
plt.plot(dev_age, py_dev_sal,linestyle=':', label='Python Dev')
plt.plot(dev_age, js_dev_y,linestyle='--',color='#5a7d9a',label='JS Dev')

plt.ylabel('Median Salary (USD)')
plt.xlabel('Ages')
plt.title('Median Salary (USD) by Ages')

plt.legend()
plt.grid(True)

plt.show()
plt.style.use('fivethirtyeight')

plt.plot(dev_age, dev_sal,linewidth=2,label='All Dev')
plt.plot(dev_age, py_dev_sal,linewidth=1,linestyle=':', label='Python Dev')
plt.plot(dev_age, js_dev_y,linewidth=1, linestyle='--',label='JS Dev')

plt.ylabel('Median Salary (USD)')
plt.xlabel('Ages')
plt.title('Median Salary (USD) by Ages')

plt.legend()
plt.grid(True)
plt.savefig('figure/fig1')
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19080919080919082, 'fraction_numerical': 0.06693306693306693, 'mean_word_length': 6.399014778325123, '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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '167739', 'license': 'MIT', 'n_tokens_mistral': 1518, 'n_tokens_neox': 1263, 'n_words': 256, 'path': 'matplotlib basics/matplotlib 1.ipynb', 'repo_name': 'ikaushikpal/ML_Prerequisite', 'size': '3003'}