1
$\begingroup$

In Mathematica 10.1 I could do the following:

sunrises = {{#, 0}, {#, 5}} & /@ {1514790039, 1514876410, 1514962776, 1515049137};
DateListPlot[sunrises, Joined -> True]
ListPlot[sunrises, Joined -> True]

output1 output2

But since Mathematica 11 DateListPlot seems to behave differently:

DateListPlot::ldata: {{{1514790039,0},{1514790039,5}},{{1514876410,0},{1514876410,5}},{{1514962776,0},{1514962776,5}},{{1515049137,0},{1515049137,5}}} is not a valid dataset or list of datasets.

Apparently, the ListPlot-like syntax is no longer acceptable. So what is the "official" way to achieve this? Or is it simply a bug which should be reported?

$\endgroup$
1
$\begingroup$

This appears to be a bug introduced in Mathematica 11.0.1, persisting in 11.1.0, and fixed as of 11.2.0.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.