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


Groups > comp.soft-sys.math.mathematica > #13516

Re: barchart

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: barchart
Date 2013-02-17 09:08 +0000
Message-ID <kfq6mg$4uu$1@smc.vnet.net> (permalink)
References <20130216060904.94C8769A2@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


BarChart[
 {{1, 2, 3}, {1, 3, 2}},
 ChartLegends ->
  {"John", "Mary", "Bob"},
 Prolog -> {Red,
   Line[{{0.5, 1.5}, {7, 1.5}}]}]

BarChart[
 {{1, 2, 3}, {1, 3, 2}},
 ChartLegends ->
  {"John", "Mary", "Bob"},
 Epilog -> {Red,
   Line[{{0.5, 1.5}, {7, 1.5}}]}]

Show[
 Graphics[{Red,
   Line[{{0.5, 1.5}, {6.7, 1.5}}]}],
 BarChart[
  {{1, 2, 3}, {1, 3, 2}},
  ChartLegends ->
   {"John", "Mary", "Bob"}],
 Axes -> True,
 AxesOrigin -> {0.5, 0}]

Show[
 BarChart[
  {{1, 2, 3}, {1, 3, 2}},
  ChartLegends ->
   {"John", "Mary", "Bob"}],
 Graphics[{Red,
   Line[{{0.5, 1.5}, {6.7, 1.5}}]}]]


Bob Hanlon


On Sat, Feb 16, 2013 at 1:09 AM, Francisco Gutierrez
<fgutiers2002@yahoo.com> 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
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: barchart Bob Hanlon <hanlonr357@gmail.com> - 2013-02-17 09:08 +0000

csiph-web