October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following code block plots two charts in a row, two functions in each plot, and various text elements on each of them:
fig, ax = plt.subplots(1,2, figsize=(12,6))
x = np.linspace(0, 9, 10)y = 10*np.sqrt(x**2)y1 = x ** 2
ax[0].plot(x, y, 'g', label=r'$y=10*\sqrt{x^2}$')ax[0].plot(x, y1, 'b',label=r'$y={x^2}$')ax[0].legend()
ax[0].set_xlabel(r'$\Theta_i^j$', fontsize=20, color='#800080')ax[0].set_ylabel(r'$\Theta_{i+1}^j$', fontsize=20, color='#800080')ax[0].set_title(r'$\Delta_i^j ...Read now
Unlock full access