Bar

Source code Author Update time

using Plots
gaston()

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)
Gnuplot Produced by GNUPLOT 5.4 patchlevel 2 -1.5 -1.0 -0.5 0.0 0.5 0.0 2.5 5.0 7.5 10.0 y1 gnuplot_plot_2a gnuplot_plot_3a gnuplot_plot_4a gnuplot_plot_5a gnuplot_plot_6a gnuplot_plot_7a gnuplot_plot_8a gnuplot_plot_9a gnuplot_plot_10a gnuplot_plot_11a 0 1 2 3 4 5 6 0 2 4 6 y1 gnuplot_plot_2b gnuplot_plot_3b gnuplot_plot_4b

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