Plot function of 3 space variables plus time

Click For Summary

Discussion Overview

The discussion revolves around the challenge of plotting a function of three spatial variables plus time, specifically a four-dimensional object represented as ##\phi(x,y,z,t)##. Participants explore methods to visualize this function in a three-dimensional space while evolving over time, with a focus on using gnuplot and other software alternatives.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses a desire to visualize the function ##\phi(x,y,z,t)## using colors and transparencies to represent the magnitude of a diffusing concentration in a 3D space.
  • Another participant raises concerns about the difficulty of representing a four-dimensional object on a two-dimensional screen, suggesting that this may be why finding suitable software is challenging.
  • A participant offers an analogy involving the diffusion of urine in water to illustrate the concept of visualizing concentration as a function of space and time.
  • One participant proposes plotting isosurfaces for fixed values of ##\phi(x,y,z)=C## at different times as a potential solution.
  • Another participant shares an example of plotting a sequence of surfaces in Maple, indicating that while it may not show everything at once, it could be a useful approach.
  • A later reply suggests that plotting a fixed isosurface, such as ##\rho(x,y,z,t)=1##, could be a simpler way to visualize the concept, though it may not fully capture the evolving nature of the function.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method for visualizing the four-dimensional function, with multiple competing views and approaches remaining in the discussion.

Contextual Notes

Participants acknowledge the limitations of visualizing four-dimensional data in a two-dimensional format and the challenges associated with finding appropriate software tools for this purpose.

Telemachus
Messages
820
Reaction score
30
Hi there. I am willing to plot a function of three space variables plus time, let's say ##\phi(x,y,z,t)##. The idea is to plot the 3D function for each time, i.e. evolving in time. As I have three independent variables, corresponding to the three Cartesian coordinates, the function is actually a four dimensional object. So, the idea I had in mind was to plot the mangitude of the function with colours and transparencies, in such a way that I can see through the 3D space. As ##\phi## represents some diffusing concentration, I would like to see it in the whole 3D domain. If possible, I would like to do this with gnu plot. I have already plotted functions of two space variables evolving in time with gnuplot, but that is much easier.

However, if somebody knows of other alternatives to do this, I dispose of the data in columns, in a text file, x,y,z,##\phi##,t. If there is some software to do this in an easy way, I would welcome it (preferably in linux, but if it is for windows, I can arrange my self to do that).
 
Physics news on Phys.org
To try to "see" the whole 3d domain, represented by transparent colors, would be difficult enough if you actually built a 3D object, which somebody could walk around and look at. But you want to project this onto a 2d screen. I don't think it will be represented well. There is no easy way. I think this is why you are having a hard time finding something, and not getting much response here.
 
  • Like
Likes   Reactions: Telemachus
But, for example (and excuse me for this illustration, but this is how the idea came to me) when you pee in the toilet, you are seeing the concentration of pee diffusing in the water, and this concentration is a function of three space variables and time, why can't I resemble this?
 
Hi. I could plot the isosurfaces for each time t: ##\phi(x,y,z)=C##, where C is a constant. I could generate a file with columns ##(x,y,z)## for which ##\phi(x,y,z)=C##, is it possible to plot it that way?
 
You can plot a sequence of surfaces. Here's a simple example done in Maple, where you have a sphere with perhaps a varying density indicated by a change in color. But you can't see it all at once. Not sure if it's the kind of thing you want or whether an animated gif will work here. Here goes:
spheres.gif

Well, I guess it works.
Here's another example where instead of animation I use wireframe so you can see through it somewhat. It's the same example:
spheres3.gif
 
Last edited:
  • Like
Likes   Reactions: Telemachus
Yes, that is ok. Your function is something like ##\rho(x,y,z,t)=x^2+y^2+z^2+\phi(t)##? I think it would be ok just to plot ##\rho(x,y,z,t)=1## at all times, in this case I think it would be just a fixed sphere, but in general it would be some evolving isosurface.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K