Group Abstract Group Abstract

Message Boards Message Boards

Simple DateListPlot not displaying anything

6 Replies

Thank you very much. I'm maybe finally starting to see how I might debug my code. Piping into InputForm gives me some hope I might get the hang of things more readily.

It's finally occurring to me that I need to focus on the primitives of WL, being that WL is written in WL. That will require me to put much more effort on reading other's code.

POSTED BY: Lawrence Winkler
Posted 5 years ago

Hi Lawrence,

If you look at

sessionsperdate // Normal // Values // InputForm

you will notice that the value associated with each date is a String. That explains the empty plot. One way to convert to numeric

(sessionsperdate // Normal // Values) /. {d_, v_} :> {d, ToExpression@v} // DateListPlot

enter image description here

POSTED BY: Rohit Namjoshi

I've uploaded an NB will the code and output

POSTED BY: Lawrence Winkler
Posted 5 years ago
POSTED BY: Rohit Namjoshi
POSTED BY: Lawrence Winkler
Posted 5 years ago

Hi Lawrence,

Could you please edit your post and add a few lines from the output of

sessionsperdate // Normal // Values
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard