Message Boards Message Boards

0
|
5034 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How can I put the dates on the vertical axis in a DateListPlot?

Posted 10 years ago

Hello everyone,

How can I swap the axes on a DateListPlot so that the dates appear on the y axis and the values on the x? I want to create an annotated daily timeline, and it would look better in a vertical orientation because the time series is longish.

Gregory

POSTED BY: Gregory Lypny
2 Replies
Posted 10 years ago

Hi James,

Good stuff. You were right about the tweaking, but it works well.

Thanks again,

Gregory

POSTED BY: Gregory Lypny
Posted 10 years ago

Refer to the documentation for Ticks. You'll want to write an option such as: Ticks->{xTicks,yTicks} where xTicks might be Automatic, and where yTicks might be something like: Transpose[{label1,label2,...},{position1,position2,...}]

It can get quite tedious: the labels need to be strings, such as "3 Jan 2013", and the positions along the vertical axis must scale to the data range you are plotting.

POSTED BY: James Stein
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract