MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: BarChart Range

  • To: mathgroup at smc.vnet.net
  • Subject: [mg103580] Re: [mg103551] BarChart Range
  • From: "David Annetts" <david.annetts at iinet.net.au>
  • Date: Tue, 29 Sep 2009 07:37:17 -0400 (EDT)
  • References: <200909280306.XAA06459@smc.vnet.net>

Hi David,

> 
> I have:
> 
> BarChart[{43.34, 43.60, 44.19, 44.73}]
> 
> Can someone show me how to set the range to run from 40 to 50?

There's PlotRange, although 

BarChart[{43.34, 43.60, 44.19, 44.73}, PlotRange -> {40, 50}] looks pretty
crappy.  

To fix this, try something like

BarChart[{43.34, 43.60, 44.19, 44.73}, PlotRange -> {40, 50},
 PlotRangeClipping -> True,
 Frame -> True,
 FrameTicks -> {{Automatic, None}, {None, None}}]

Which is fine if you want a frame.  

On the off chance you don't, something like

BarChart[{43.34, 43.60, 44.19, 44.73}, PlotRange -> {40, 50},
 PlotRangeClipping -> True,
 Frame -> True,
 FrameTicks -> {{Automatic, None}, {None, None}}, 
 FrameStyle -> {{Automatic, White}, {Black, White}}]

Might be more your style.

YMMV,

Dave



  • Prev by Date: reference manager in Mathematica?
  • Next by Date: Background image sizing
  • Previous by thread: Re: BarChart Range
  • Next by thread: Re: BarChart Range