<jupyter_start><jupyter_text>Matplotlib---<jupyter_code>import matplotlib.pyplot as plt<jupyter_output><empty_output><jupyter_text>Plot function<jupyter_code>import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(-1,1,20)
y = x**2
plt.plot(x,y)<jupyter_output><empty_output><jupyter_text>Multiple graphs<jupyter_code>line_2_3 = plt.plot(x,y,x, x**4)

plt.setp(line_2_3,color='red',linewidth = 2, linestyle = '--')

line_4 = plt.plot(x, x**3)
plt.setp(line_4, color='orange', linewidth = 5, linestyle = ':')<jupyter_output><empty_output><jupyter_text>Subplotshttps://matplotlib.org/stable/gallery/subplots_axes_and_figures/subplots_demo.html  Adding text to a graph<jupyter_code>import numpy as np
import matplotlib.pyplot as plt

mu, sigma = 10.0, 1.0
x = np.random.normal(mu, sigma, size=10000)

# gera um histograma de x
plt.hist(x, 50, density=1, facecolor='g', alpha=0.75)
plt.xlabel('Smarts')
plt.ylabel('Probability')
plt.title('Hello Boss')

plt.text(6.0, 0.35, 'mu=10, sigma=1.0')
plt.axis([5, 15, 0, 0.5])

plt.grid(True)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16309412861137, 'fraction_numerical': 0.04287045666356011, 'mean_word_length': 7.014925373134329, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 1, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '41016', 'license': 'MIT', 'n_tokens_mistral': 499, 'n_tokens_neox': 456, 'n_words': 75, 'path': '2021/Singles/PAE-NumPy-and-Matplotlib-part2.ipynb', 'repo_name': 'Muramatsu2602/python-bootcamp', 'size': '1073'}