We start with a simple line plot
In [180]:
using Plots
pyplot()
# we need some data
y = (0.5-x).^2 + 2*x.^2
# now plot
plot(y,
grid = false, #remove grid
title = "title",
legend = true,
label = "legned",
xlabel = "x-axis",
xlims = (0,50),
xticks = true, #0:5:50,
ylabel = "y-axis",
ylims = (0,5000),
yticks = true, #0:500:5000,
linecolor = :forestgreen,
)
Out[180]:
We want to add some error bars
In [196]:
using Plots
pyplot()
# we need some data
y = (0.5-x).^2 + 2*x.^2
yerr = log(y)*25
# now plot
plot(y,
grid = false, #remove grid
title = "title",
legend = true,
label = "legned",
xlabel = "x-axis",
xlims = (0,50),
xticks = true, #0:5:50,
ylabel = "y-axis",
ylims = (0,5000),
yticks = true, #0:500:5000,
color = :black,
linecolor = :forestgreen,
seriestype = :line,
)
scatter!(y,
label = "",
color = :black,
seriestype = :scatter,
yerror = yerr,
)
Out[196]:
In [ ]: