Vertical and horizonal spans

Source code Author Update time

using Plots
pythonplot()

vspan and hspan can be used to shade horizontal and vertical ranges.

hspan([1, 2, 3, 4]; label = "hspan", legend = :topleft)
vspan!([2, 3]; alpha = 0.5, label = "vspan")
plot!([0, 2, 3, 5], [-1, 3, 2, 6]; c = :black, lw = 2, label = "line")
2023-01-27T18:05:37.572711 image/svg+xml Matplotlib v3.6.3, https://matplotlib.org/

This page was generated using DemoCards.jl and Literate.jl.