Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.5K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to surpress timegaps within DateListPlot

Hi, As you can see below the code produces a DateListPlot for some Trading data. In the weekends there no trading and DateListPlot shows this in the plot by skipping these values and connecting the friday and mondays. This of course creates a "gap" between the friday and monday. How can I get the fridays and monday values next to each other? Is there an option to do this?

data = FinancialData["^AEX", {{2015, 1, 1}, {2015, 2, 1}}];

DateListPlot[data, Frame -> False, Ticks -> {data[[All, 1]], Automatic}, DateTicksFormat -> {"Day"}, ImageSize -> {600, 100}, AspectRatio -> 100/600.]

enter image description here

So the gap below between 09 and 12 I would have liked removed

enter image description here

thx for helping

POSTED BY: l van Veen
2 Replies
POSTED BY: Marco Thiel

Hi Marcus, Thx this should work for me. It feels a bit like cheating but I'm fine with that :)

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