Skip to content

Instantly share code, notes, and snippets.

@pjastr
Created May 23, 2019 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjastr/2200ca59fdbd446c6cc86ecfcd18d457 to your computer and use it in GitHub Desktop.
Save pjastr/2200ca59fdbd446c6cc86ecfcd18d457 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(-5, 5, 0.01)
y = np.exp(x) + np.sin(x)
plt.plot(x, y, label="y=e^x+sin(x)")
plt.xlabel('Oś x')
plt.ylabel('Oś y')
plt.title('Wykres funkcji y=e^x+sin(x)')
plt.grid(True)
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment