Mathematica Mathematica: Plot time evolution data in 3D

AI Thread Summary
The discussion focuses on plotting three sets of data in Mathematica, specifically using lists A, B, and C, where C contains time data in DateList format. While the user successfully uses DateListPlot for 2D plots, they encounter difficulties integrating all three datasets into a 3D plot. Suggestions include creating an interpolation function or converting time data to absolute values for plotting. Additionally, there is a query about customizing axis tick labels to display time in a specific format, which can be achieved using the Ticks option in Mathematica. Overall, the conversation emphasizes the need for custom solutions to visualize time evolution data effectively.
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.
 

Similar threads

Replies
3
Views
2K
Replies
1
Views
2K
Replies
2
Views
3K
Replies
6
Views
4K
Replies
7
Views
6K
Replies
2
Views
2K
Replies
3
Views
7K
Back
Top