6
$\begingroup$

Bug introduced in 10.2 or earlier and fixed in 11.0.1


Simple Code:

DateListPlot[<|
  "A44" -> {{{1992, 12, 1}, 1}, {{1992, 12, 2}, 2}, {{1992, 12, 3}, 
     3}}, "A45" -> {{{1992, 12, 1}, 4}, {{1992, 12, 2}, 
     5}, {{1992, 12, 3}, 6}}|>]

But Mathematica tells me it is not a valid dataset or list of datasets.

However, if I change "A44" and "A45" to "A4" and "A5", the plot is correct.

Any fixes?

$\endgroup$
2
  • 3
    $\begingroup$ It appears as if the key is of the form "a__dd__" DateListPlot will fail. i.e. any alpha sequence followed by at least two digits. $\endgroup$
    – JJM
    Aug 22 '16 at 20:26
  • 1
    $\begingroup$ This has been reported as a bug. $\endgroup$
    – JJM
    Aug 22 '16 at 20:51
3
$\begingroup$

This is fixed on 11.0.1.

DateListPlot[<|
 "A44" -> {{{1992, 12, 1}, 1}, {{1992, 12, 2}, 2}, {{1992, 12, 3}, 3}}, 
 "A45" -> {{{1992, 12, 1}, 4}, {{1992, 12, 2}, 5}, {{1992, 12, 3}, 6}}|>]

enter image description here

$\endgroup$
4
  • $\begingroup$ I still have the same error: DateListPlot::ldata: <|Bhutan->Missing[KeyAbsent,Bhutan],Kiribati->Missing[KeyAbsent,Kiribati],Vanuatu->Missing[KeyAbsent,Vanuatu]|> is not a valid dataset or list of datasets, although I have MMA version 11.3. Dataset is read correctly as I see it and dataset has no problem at all. Can you tell me what the problem is? $\endgroup$ Oct 28 at 20:27
  • 1
    $\begingroup$ @TugrulTemel I think the issue is you have Missing data. You'll have to prune those data sets. $\endgroup$
    – rcollyer
    Oct 29 at 14:06
  • $\begingroup$ Should I get rid of Missing[] elements in the dataset? $\endgroup$ Oct 29 at 14:15
  • 1
    $\begingroup$ @TugrulTemel to plot it, yes. $\endgroup$
    – rcollyer
    Oct 29 at 20:51

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.