STEM PLOT
import matplotlib.pyplot as plt
import numpy as np
make data
np.random.seed(3)
x = 0.5 + np.arange(8)
y = np.random.uniform(2, 7, len(x))
plot
fig, ax = plt.subplots()
ax.stem(x, y)
ax.set(xlim=(0, 8), xticks=np.arange(1, 8),
ylim=(0, 8), yticks=np.arange(1, 8))
plt.show()
STEP PLOT
import matplotlib.pyplot as plt
import numpy as np
make data
np.random.seed(3)
x = 0.5 + np.arange(8)
y = np.random.uniform(2, 7, len(x))
plot
fig, ax = plt.subplots()
ax.step(x, y, linewidth=2.5)
ax.set(xlim=(0, 8), xticks=np.arange(1, 8),
ylim=(0, 8), yticks=np.arange(1, 8))
plt.show()
On this page of the site you can watch the video online STEM PLOT || STEP PLOT PYTHON MATPLOTLIB with a duration of hours minute second in good quality, which was uploaded by the user Finki Dona Marleny 03 February 2022, share the link with friends and acquaintances, this video has already been watched 229 times on youtube and it was liked by 3 viewers. Enjoy your viewing!