Hi all,
it’s been long, I have been using Julia for so long almost 1 year, thus I want to try can Python plot better than Julia?
I want to plot the right side of this picture
I have plot the left side with Julia:
using Plots, LaTeXStrings, Plots.PlotMeasures
gr()
f(x) = sqrt(x)
plot(f,0,4, xtick=0:4:4, xlims=(0,6), ylims=(0,3),
framestyle=:zerolines, bottom_margin=5mm,
label=L"y = \sqrt{x}", legend=:topright)
plot!(f,0,5, label="", fill=(0, 0.15, :blue))
plot!(f,2,2.3, label="", fill=(0, 0.35, :blue))
# Annotations
annotate!([(2.12,1.6, (L"△ x", 8, :blue))])
annotate!([(2,-0.1, (L"x_{i}", 8, :blue))])
annotate!([(2.4,-0.1, (L"x_{i+1}", 8, :blue))])
Is Python able to plot the right side? since it seems complex to do so in Julia. Thanks before.