Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13507 > unrolled thread

barchart

Started byFrancisco Gutierrez <fgutiers2002@yahoo.com>
First post2013-02-16 06:08 +0000
Last post2013-02-17 09:08 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  barchart Francisco Gutierrez <fgutiers2002@yahoo.com> - 2013-02-16 06:08 +0000
    Re: barchart Helen Read <readhpr@gmail.com> - 2013-02-17 09:08 +0000

#13507 — barchart

FromFrancisco Gutierrez <fgutiers2002@yahoo.com>
Date2013-02-16 06:08 +0000
Subjectbarchart
Message-ID<kfn7o2$qal$1@smc.vnet.net>
Dear Group:

I have not managed to combine BarChart with a line.

The simple problem is the following. I have a labeled BarChart (that is, I use the ChartLegends options) , and I want to draw a horizontal line, to highlight the separation say between units below and above 10. But I do not see how can this be done within BarChart, and I haven't been able to combine BarChart with the line using Show or Graphics.

Can somebody help me?

Francisco

[toc] | [next] | [standalone]


#13521

FromHelen Read <readhpr@gmail.com>
Date2013-02-17 09:08 +0000
Message-ID<kfq6nb$4vi$1@smc.vnet.net>
In reply to#13507
list1 = RandomInteger[{1, 25}, 5];
list2 = RandomInteger[{8, 15}, 8];

BarChart[{list1, list2}, Epilog -> {Red, Line[{{0, 10}, {15, 10}}]}]

plot1 = BarChart[{list1, list2}];

plot2 = Plot[10, {x, 0, 14}, PlotStyle -> Red];
Show[{plot1, plot2}]

Helen Read
University of Vermont

On 2/16/2013 1:08 AM, Francisco Gutierrez wrote:
> Dear Group:
>
> I have not managed to combine BarChart with a line.
>
> The simple problem is the following. I have a labeled BarChart (that
> is, I use the ChartLegends options) , and I want to draw a horizontal
> line, to highlight the separation say between units below and above 10.
> But I do not see how can this be done within BarChart, and I haven't
> been able to combine BarChart with the line using Show or Graphics.
>
> Can somebody help me?
>
> Francisco
>



[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web