In the textbook about Python I am working with I read: "Every visual aspect of a graph can be changed from its default. You can specify these when you create a plot; most can also be changed later."
So creating a .py file
# simple_plot.py
import numpy as np, matplotlib.pyplot as plt
num_points = 5
x_min, x_max = 0, 4
5 x_values = np.linspace(x_min, x_max, num_points)
y_values = x_values**2
plt.plot(x_values, y_values)
and running it, gives the desired plot. Now typing in the console e.g.
plt.plot(x_values,y_values,'r--o')
plots a red dashed line with red circles at each point. However I cannot understand why typing in the console (and not adding the instructions in the script created initially) something like
plt.title("My first plot", size=24, weight='bold')
plt.xlabel("speed")
plt.ylabel("kinetic energy")
does not update the plot. Thank you very much.

plt.draw()after those last three lines?plt.draw()I don't see something different.