I am trying to plot two curves in the same plot by using
I would appreciate if the 2 different curves had different colors. When it comes to the
line, I managed to change it from the default blue color to e.g. green, by writing:
line = (:path, "green")
The problem is that I also need markers, but I haven’t managed to change their colour too: no matter the line color, they remain blue (like the default color).
My code is like:
# First curve wanted_font = "garamond" fig_1 = plot(x_axis_values, y_axis_values, c = , # I added c= to not get a warning message, as suggested in another post/forum, I'm not sure about the meaning title = "My title", titlefont = wanted_font, tickfont = wanted_font, legendfont = wanted_font, guidefont = wanted_font, xlabel = "Year", ylabel = "Magnitude", legend = true, legend = :topleft, label = "Trend in scenario 1", grid = false, marker = (:circle, 4), ) # Second curve plot!(fig_1, x_axis_values, second_y_axis_values, c = , # I added c= to not get a warning message, as suggested in another post/forum, I'm not sure about the meaning label = "Trend in scenario 2", line = (:path, "green"), # Here I change the line color marker = (:diamond, 4), # Missing: something to change the marker color too .... )
Thank you in advance!