Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: BarChart inside a Frame. How to remove Labels from the top of

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80612] Re: BarChart inside a Frame. How to remove Labels from the top of
  • From: Helen Read <hpr at together.net>
  • Date: Sun, 26 Aug 2007 23:17:06 -0400 (EDT)
  • References: <fardqs$b5c$1@smc.vnet.net>
  • Reply-to: HPR <read at math.uvm.edu>

Nasser Abbasi wrote:
> Mathematica 6.0.1
> 
> This is really annoying. I wanted a BarChart inside a frame. All works ok, 
> except it insists on putting the bar labels on top of the frame as well as 
> on the bottom of the frame, like this:
> 
> BarChart[{1, 2, 3}, Frame -> True]
> 
> I can remove the labels altogether, and use FrameTicks, but it still does it 
> again !
> 
> BarChart[{1, 2, 3}, Frame -> 
> True,BarLabels->None,FrameTicks->{{1,2,3},{0,1}}]
>
> I think BarChart conflict with Frame somehow.

It's not a conflict, it's just that you have turned on all 4 sides of 
the frame. You can pick the ones you want, like this:

BarChart[{1, 2, 3}, Frame -> {True,True,False,False}]

> The only reason I wanted to put the BarChart inside a frame, is that with a 
> frame, when I put the x-label, it will go below and not on the side.

Then why not just use Labeled?

Labeled[BarChart[{1, 2, 3}], {"x-axis label"}]

Or put the label on the top if you want.

Labeled[BarChart[{1, 2, 3}], {"x-axis label"}, Top]

And if you also have a y-axis label:

Labeled[BarChart[{1, 2, 3}], {"x-axis label",
   "y-axis label"}, {Bottom, {Top, Left}}]


-- 
Helen Read
University of Vermont


  • Prev by Date: Re: [?? Probable Spam] Matrix Inverse Issue
  • Next by Date: More on "save as PDF" page size issues
  • Previous by thread: Re: [?? Probable Spam] Matrix Inverse Issue
  • Next by thread: Re: BarChart inside a Frame. How to remove Labels from the top of