Mathematica: Plot time evolution data in 3D

Click For Summary

Discussion Overview

The discussion revolves around plotting time evolution data in 3D using Mathematica. Participants explore how to effectively visualize three datasets, particularly focusing on the challenges of integrating date formats into 3D plots.

Discussion Character

  • Technical explanation, Exploratory, Debate/contested

Main Points Raised

  • Christina presents a problem with plotting three datasets (A, B, and C) in 3D, noting that while she can use DateListPlot for 2D, she struggles with ListPlot3D.
  • One participant questions whether a 3D plot is necessary or if a 2D plot with two lines would suffice, suggesting that C might represent time while A and B could be different datasets.
  • Christina clarifies that A and B are indeed different datasets measured simultaneously and that she wants to visualize their changes over time on a surface plot.
  • Another participant suggests that there may not be a built-in function like DateListPlot for 3D plots, recommending that Christina either program a solution or manipulate her data for compatibility with existing functions.
  • Christina considers converting her time data to absolute time for plotting and inquires about labeling axes with custom formats.
  • A participant responds affirmatively, indicating that the Ticks option in Mathematica can be used for custom axis labeling.

Areas of Agreement / Disagreement

There is no consensus on the necessity of a 3D plot versus a 2D plot with two lines. The discussion remains open regarding the best approach to visualize the data.

Contextual Notes

Participants have not resolved the specific method for integrating date formats into 3D plots, and there are unresolved considerations regarding the best plotting strategy for the datasets.

Who May Find This Useful

Users of Mathematica interested in data visualization, particularly those dealing with time evolution data in multiple dimensions.

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 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
6K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
8K