import matplotlib.pyplot as plt
import numpy as np
fig, axes = plt.subplots(1, 2, sharey=True)
xx = np.linspace(-10, 10, 1000)
[ax.grid() for ax in axes]
axes[0].plot(np.sin(xx * xx), color="blue")
axes[1].plot(np.cos(xx) * xx, color="red")
fig.subplots_adjust(wspace=0) # no horizontal space
plt.savefig("ex414.png", dpi=100)
plt.show()

Discover more from Tips and Hints for Aerospace Engineers

Subscribe now to keep reading and get access to the full archive.

Continue reading