Previous Up Next

20.1.14  Bar plots

The bar_plot or barplot command draws bar plots.

Examples

bar_plot([["France",6],["Germany",12],["Switzerland",5]],color=navy,0.618)
bar_plot([[2,"*First group*","*Second group*"], ["A",2,5],["B",5,6],["C",6,6]],color=[teal,olive,gold])

To specify the midpoints of bar bases, the first argument must be a list of pairs [midpoint,height]. For example:

barplot([[1,4],[3,5],[4,2]],color=orange)

Note that usual axes are automatically drawn in this case.


Previous Up Next