import matplotlib.pyplot as pltimport numpy as np
x = np.arange(-3, 3.5, 0.5)y = x**3
plt.plot(x, y, color='b', linewidth=2, marker='o', markersize=8, markerfacecolor='r', markeredgewidth=2)plt.xlabel('x')plt.ylabel('y')plt.title('График функции y = x^3')plt.grid(True)plt.show()
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(-3, 3.5, 0.5)
y = x**3
plt.plot(x, y, color='b', linewidth=2, marker='o', markersize=8, markerfacecolor='r', markeredgewidth=2)
plt.xlabel('x')
plt.ylabel('y')
plt.title('График функции y = x^3')
plt.grid(True)
plt.show()