import sympy graf = sympy.plot("1/(1+exp(-x))", xlim=(-5, 5)) graf.save("Grafica.pdf") graf.save("Grafica.png")