“Guardar trazado como imagen Python matplotlib” Código de respuesta

Python Plot JPG Imagen

%pylab inline
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img = mpimg.imread('your_image.png')
imgplot = plt.imshow(img)
plt.show()
firststef

Guardar trazado como imagen Python matplotlib

import matplotlib.pyplot as plt
import numpy as np

x = np.arange(0, 10, 0.1)
y = np.sin(x)

plt.plot(x, y)
plt.savefig('saved_figure.png')
namansolanki059

Respuestas similares a “Guardar trazado como imagen Python matplotlib”

Preguntas similares a “Guardar trazado como imagen Python matplotlib”

Más respuestas relacionadas con “Guardar trazado como imagen Python matplotlib” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código