mirror of
https://github.com/wahyd4/code-sandbox.git
synced 2026-08-09 05:07:03 +10:00
21 lines
363 B
Python
21 lines
363 B
Python
import numpy as np
|
|
import matplotlib as matl
|
|
import matplotlib.pyplot as plt
|
|
import seaborn as sns
|
|
from IPython.display import Image
|
|
|
|
plt.style.use("seaborn-whitegrid")
|
|
|
|
x = np.linspace(0, 10, 100)
|
|
|
|
figure = plt.figure()
|
|
ax = plt.axes()
|
|
|
|
plt.plot(x, np.sin(x), "-", label="sin(x)")
|
|
plt.plot(x, np.cos(x), "o", label="cos(x)")
|
|
|
|
|
|
plt.legend()
|
|
|
|
plt.show(block=True)
|