MathGroup Archive 2009

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

Search the Archive

Re: barchart with vertical tick labels on the horizontal axis.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99953] Re: barchart with vertical tick labels on the horizontal axis.
  • From: mike.honeychurch at gmail.com
  • Date: Wed, 20 May 2009 04:58:08 -0400 (EDT)
  • References: <guu2dd$66i$1@smc.vnet.net>

On May 19, 5:41 am, andersgs <ander... at gmail.com> wrote:
> hello.
>
> i am trying to add vertical tick labels to the horizontal axis of a
> bar chart. i have tried solutions proposed previously in this
> discussion group. but, they were for version 5x and don't seem to
> behave the same in version 6. any insights would be greatly
> appreciated.
>
> the labels are strings.
>
> thank you.
>
> anders.

I'm assuming by "vertical labels" you mean rotated???

ticks[min_, max_] :=
 Table[{x, Rotate[ToString[x], 90 \[Degree]], {0.01, 0}}, {x,
   Floor[min], Ceiling[max]}]

Plot[x^2, {x, -2, 2}, Ticks -> {ticks, ticks}]


  • Prev by Date: Re: How to change name of the file in a Do loop
  • Next by Date: Re: barchart with vertical tick labels on the horizontal axis.
  • Previous by thread: barchart with vertical tick labels on the horizontal axis.
  • Next by thread: Re: barchart with vertical tick labels on the horizontal axis.