# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

import matplotlib.pyplot as plt

import numpy as np

x = np.linspace(0,10,100)

x

sinx = np.sin(x)

cosx = np.cos(x)

plt.plot(x, sinx)
plt.show()

plt.plot(x, sinx, color='red')
plt.plot(x, cosx, color='blue', linestyle="--")
plt.show()

plt.plot(x, sinx, color='red')
plt.plot(x, cosx, color='blue', linestyle="--")
plt.axis([-5, 15, -2, 2])
plt.show()

plt.plot(x, sinx, color='red')
plt.plot(x, cosx, color='blue', linestyle="--")
plt.xlabel("x lable")
plt.ylabel("y lable")
plt.show()

plt.plot(x, sinx, color='red', label="sinx")
plt.plot(x, cosx, color='blue', linestyle="--", label="cosx")
plt.xlabel("x lable")
plt.ylabel("y lable")
plt.legend()
plt.show()

plt.plot(x, sinx, color='red', label="sinx")
plt.plot(x, cosx, color='blue', linestyle="--", label="cosx")
plt.xlabel("x lable")
plt.ylabel("y lable")
plt.title("Welcome to the ML World!")
plt.legend()
plt.show()

# ### Scatter Plot

plt.scatter(x, sinx)
plt.show()

# +
x = np.random.normal(0, 1, 10000)
y = np.random.normal(0, 1, 10000)

plt.scatter(x, y)
plt.show()

# +
x = np.random.normal(0, 1, 10000)
y = np.random.normal(0, 1, 10000)

plt.scatter(x, y, alpha=0.5)
plt.show()
# -



StarcoderdataJupyterScriptsDedupFiltered