Compilador de Python Online (Editor / Interpretador)
Escreva, execute e compartilhe o seu código Python instantaneamente com o Compilador de Python Online da Asimov Academy.
import matplotlib.pyplot as plt
# Cria uma figura e dois subplots lado a lado
fig, (ax1, ax2) = plt.subplots(1, 2)
# Primeiro subplot
ax1.plot([1, 2, 3], [1, 4, 9])
ax1.set_title('Primeiro Subplot')
# Segundo subplot
ax2.plot([1, 2, 3], [1, 2, 3])
ax2.set_title('Segundo Subplot')
# Exibe a figura com os subplots
plt.show()