Skip to content

Instantly share code, notes, and snippets.

@MrStickyPiston
Created June 23, 2023 12:03
Show Gist options
  • Save MrStickyPiston/f2cedf5ee4fc761642e84a8e37326486 to your computer and use it in GitHub Desktop.
Save MrStickyPiston/f2cedf5ee4fc761642e84a8e37326486 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(-10.0, 10.0, 0.001)
y = x ** 2 + x * 2 + 10
plt.plot(x, y, label='y = x**2')
plt.xlabel('x')
plt.ylabel('y')
plt.grid(alpha=.4, linestyle='-')
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment