x = syp.Symbol('x')
miles_to_km = x * 1.609344
miles_to_km.evalf()
graph = syp.plot(miles_to_km, show=False)
import matplotlib.pyplot as plt
plt.savefig('./figures/miles_to_km.png', dpi=300)
Saving Python SymPy figures with a specific resolution/pixel density