MathGroup Archive 2013

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

Search the Archive

Re: Rotate Dateticks in DateListPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131539] Re: Rotate Dateticks in DateListPlot
  • From: Gregory Lypny <gregory.lypny at videotron.ca>
  • Date: Thu, 22 Aug 2013 00:52:03 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

Hi everyone,

Bob Hanlon posted a neat way of rotating the frame ticks (date markers) on a date list plot.

data = {{{2006, 10, 1}, 10}, {{2006, 10, 15}, 12}, {{2006, 10, 30}, 
    15}, {{2006, 11, 20}, 20}};

Show[DateListPlot[data] /.
  str_String :> Rotate[str, 90 Degree]]

It works like a charm as long as their are no other string annotations in the plot; otherwise, those other annotations will be rotated too.  Is there a way to rotate only the frame ticks?

Regards,

Gregory





  • Prev by Date: Re: parametric plot and filling
  • Next by Date: Re: Connecting to remote kernel
  • Previous by thread: ReliefPlot of .ply file errors
  • Next by thread: Re: Rotate Dateticks in DateListPlot