First page Back Continue Last page Overview Graphics

Adding a Legend

If we add a label to the plot function, the values will be used in the legend command.

plot(X, F1, label="$sin(x)$")

plot(X, F2, label="$3 sin(x)$")

legend(loc='upper right')