I have several functions I would like to plot on the same axis in Julia. How can I do this?
f(x) = x.^2
g(x) = 2*x
t = 1:100
# plot both f and g vs. t?
Depending on your backend, you can sometimes just plot the first function and then plot! the subsequent ones, but this doesn't work so well for the plotly backend (which has to generate a new figure for each plot). Is there a way to plot both simultaneously?
p = plot(t, f), thenplot!(p, t, g), then printingpshould show the entire plot. - Timothée Poisot