<jupyter_start><jupyter_text>Biblioteca matplotlib<jupyter_code>import numpy as np
import matplotlib.pyplot as plt


data = np.linspace(-5,5)
plt.plot(data)
plt.show()
t = np.arange(0,2,0.01)
signal = 1 + np.sin(2 * np.pi * t)

plt.plot(t,signal)
plt.show()
t = np.arange(0,2,0.05)
signal = 1 + np.sin( 2 * np.pi * t)

plt.plot(t-1,signal,'r--',label = 'sinal modificado')
plt.plot(t,signal,label =" Sinal original")
plt.legend(loc = 1)

plt.title('Funções de exemplo')
plt.xlabel('Tempo(s)')
plt.ylabel('Tensão(mV)')

plt.show()
t = np.arange(0,2,0.01)
signal1 = 1 + np.sin(2 * np.pi * t)
signal2 = 1 + np.cos(2 * np.pi * t)

plt.plot(t,signal1,label="Seno",c="b")
plt.plot(t,signal2,label="Cosseno",c="orange")
plt.legend(loc= 1)

plt.title("Funções de exemplo")
plt.ylabel("Amplitude")
plt.xlabel("t(s)")

plt.plot(t,signal1,t,signal2)
plt.show()
t = np.arange(0,2,0.05)
signal = 1 + np.sin(2 * np.pi * t)

plt.plot(t,signal,label="Sinal original")

plt.plot(t-1,signal,'ro',label = 'Sinal modificado')
plt.legend(loc = 1)

plt.title('Funções exemplo')
plt.xlabel('tempo(s)')
plt.ylabel('tensão(mV)')

plt.show()

plt.suptitle('Título geral')

plt.subplot(221)
plt.plot(t,signal)

plt.subplot(222)
plt.plot(t,signal*2)

plt.subplot(223)
plt.plot(t,signal/2)

plt.subplot(224)
plt.plot(t,signal + signal * 10)
x = np.linspace(0.1, 2 * np.pi , 41)
y = np.exp(np.sin(x))

plt.stem(x,y,use_line_collection = True)
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.21197522367515484, 'fraction_numerical': 0.0440467997247075, 'mean_word_length': 5.267241379310345, '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': '198172', 'license': 'MIT', 'n_tokens_mistral': 754, 'n_tokens_neox': 685, 'n_words': 108, 'path': 'Aulas pds/Biblioteca_matplotlib.ipynb', 'repo_name': 'AlyssonBatista/Codigos-python', 'size': '1453'}