Bar

Source code Author Update time

using Plots
unicodeplots()

bar(x, y) plots bars with heights y and centers at x. x defaults to eachindex(y).

plot(bar(randn(10)), bar([0, 3, 5], [1, 2, 6]), legend = false)
┌────────────────────────────────────────┐ ┌────────────────────────────────────────┐ 0.90514 │⡇⠀⠀⠀⠀⢸⠉⚬⢹⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│  6 │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡏⠉⠉⠉⚬⠉⠉⠉⢹⠀⠀│   │⡇⠀⠀⠀⠀⢸⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│   │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│   │⡇⠀⡏⚬⠉⣿⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│   │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│   │⡇⠀⡇⠀⠀⣿⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│   │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│   │⣇⣀⣇⣀⣀⣿⣀⣀⣸⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣰⣒⚬⣲⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀│   │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│   │⡇⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⡇⡇⠀⠀⣿⠀⠀⢸⡇⠀⠀⡇⠀⠀⠀⠘⠒⚬⠚⡇⠀⠀⣿⠀⠀⢸⠀⠀│   │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│   │⡇⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⡇⡇⠀⠀⣿⠀⠀⢸⡇⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⣿⠀⠀⢸⠀⠀│   │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│   │⡇⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⡇⡇⠀⠀⣿⠀⠀⢸⡇⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⣿⠀⠀⢸⠀⠀│   │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│   │⡇⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⡇⡇⠀⠀⡟⠒⚬⠚⠓⚬⠒⠃⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⣿⠀⠀⢸⠀⠀│   │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│   │⡇⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⡇⡇⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⣿⠀⠀⢸⠀⠀│   │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│   │⡇⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⡇⡇⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⣿⠀⠀⢸⠀⠀│   │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡏⠉⠉⠉⚬⠉⠉⠉⠉⡇⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│   │⡇⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⡇⠧⚬⠤⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⣿⠀⠀⢸⠀⠀│   │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│   │⡇⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠧⚬⠤⢿⠀⠀⢸⠀⠀│   │⠀⠀⡤⠤⠤⠤⚬⠤⠤⠤⢤⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│   │⡇⠀⠀⠀⠀⠀⠀⠀⠀⣇⚬⣀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⢸⠀⠀│   │⠀⠀⡇⠀⠀⠀⢸⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀│  -1.90761 │⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣀⚬⣸⠀⠀│  0 │⠀⠀⣇⣀⣀⣀⣸⣀⣀⣀⣸⠀⠀⠀⠀⠀⠀⠀⣇⣀⣀⣀⣀⣀⣀⣀⣀⡇⠀⣇⣀⣀⣀⣀⣀⣀⣀⣸⠀⠀│  └────────────────────────────────────────┘ └────────────────────────────────────────┘ ⠀-0.00564⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀11.0056⠀ ⠀-1.20788⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀6.20788⠀

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