mirror of
https://github.com/wahyd4/code-sandbox.git
synced 2026-08-09 13:16:05 +10:00
move python code snippets to python folder
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user