Re: Vertical tick labels in BarChart
- To: mathgroup at smc.vnet.net
- Subject: [mg84037] Re: [mg84019] Vertical tick labels in BarChart
- From: DrMajorBob <drmajorbob at bigfoot.com>
- Date: Fri, 7 Dec 2007 03:08:32 -0500 (EST)
- References: <28492862.1196979349631.JavaMail.root@m35>
- Reply-to: drmajorbob at bigfoot.com
When the labels are wide, the sensible solution is BarChart[vals, BarLabels -> labels, BarOrientation -> Horizontal] Bobby On Thu, 06 Dec 2007 06:27:38 -0600, John Jowett <John.M.Jowett at gmail.com > wrote: > I would have thought this is a FAQ but it doesn't seem to be ... > > Consider the following construction of simple Bar Charts where the bar > labels are strings. The first one looks OK. In the second one, where > there are more bars, it's a mess because all the labels overlap > (unless the graphics is increased a lot in size): > > Needs["BarCharts`"] > > labels = {"MQM.A7L2B1", "MQMC.9R2.B1", "MQTLI.11R2.B1"}; > vals = {5, 6, 7}; > > BarChart[vals, BarLabels -> labels] > > vals = Flatten[Table[vals, {5}]]; > labels = Flatten[Table[labels, {5}]]; > > BarChart[vals, BarLabels -> labels] > > This could be neatly solved if the labels were oriented vertically > instead of horizontally (it's easy to do this, e.g., in certain > spreadsheet applications). However I can't find any option that > allows it. > I suspect it might be possible using some special Ticks construction > but haven't taken the time to see. But this should be easy ... does > anyone know how ? > > Thanks, > John Jowett > > -- = DrMajorBob at bigfoot.com