Mathematica: Plot time evolution data in 3D

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
6 replies · 5K views
ChristinaJ
Gold Member
Messages
34
Reaction score
1
Hi all,

I have 3 lists of data where lists; A={numbers}, B={numbers} and C={{y,m,d,h,m,s},{...}} (i.e. C is in the form DateList).

I have no problem plotting using DateListPlot for the 2D case (C VS A) but can't seem to plot all 3 sets of data together.

Mathematica seems not to be able to interpret the DateList format in ListPlot3d or similar.

Any help in solving this problem will be greatly appreciated.

Thanks,
Christina
 
Physics news on Phys.org
Do you really want a 3D plot or do you want two lines on a 2D plot. I.e. C is one axis in units of time, are A and B really different axes, or are they the same axis for different data?
 
A and B are different data sets.

I measured two parameters simultaneously at each time. I want to plot the change in A with B and time on some kind of surface plot.
 
I don't think there is a built in function like DateListPlot to do that. You will have to program one yourself or massage your inputs into a form useable by the existing functions.

My approach would be to make an interpolation function and plot that.
 
Thanks for the reply.

It occurred to me that I could just convert to absolute time and plot that.

Do you know any way of labeling axes tick marks with something other than the data plotted? i.e. if I plot an absolute time value can I label it as y/m/d-hh:mm?
 
Great! Thanks for all the help.