import matplotlib.pyplot as plt
import numpy as np
fig, (ax1, ax2, ax3) = plt.subplots(1, 3, figsize=(10,3))
xx = np.linspace(1, 20, 1000)
yy = np.log(xx**2 + 1) * np.sin(xx) + xx
ax1.plot(xx, yy)
ax2.scatter(sorted(xx), sorted(yy), s=1, marker=".", color="green")
ax3.hist(yy, bins=20, color="red",edgecolor='black', alpha=.5)
fig.tight_layout()
plt.savefig("ex415.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