Skip to content

Instantly share code, notes, and snippets.

@pjastr
Last active May 23, 2019 19:58
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/6006957c13c317c2beacb5b3888ed360 to your computer and use it in GitHub Desktop.
Save pjastr/6006957c13c317c2beacb5b3888ed360 to your computer and use it in GitHub Desktop.
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(14)
y = np.sin(x / 2)
plt.plot(x, y + 2, 'C0o', label="niebieski", linestyle='--')
plt.plot(x, y + 1, 'C1o', label="pomarańczowy", linestyle='-')
plt.plot(x, y, 'C2o', label="zielony")
plt.legend(title='Kolory')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment