How to plot 3D data in 2D using Mathematica?

  • Context: Mathematica 
  • Thread starter Thread starter SrEstroncio
  • Start date Start date
  • Tags Tags
    2d 3d Data Plotting
Click For Summary
SUMMARY

This discussion focuses on plotting 3D data in 2D using Mathematica, particularly for data imported from a Wien2k output file. The user seeks to visualize a three-dimensional dataset while only displaying two parameters. A suggested approach involves identifying a suitable function to represent the data, allowing for the creation of multiple 2D graphs, each holding one variable constant. Additionally, color coding can be employed to represent the third dimension effectively.

PREREQUISITES
  • Familiarity with Mathematica 12.0 for data visualization
  • Understanding of 3D data representation techniques
  • Basic knowledge of function plotting and graphing
  • Experience with color mapping in graphical representations
NEXT STEPS
  • Research how to use Mathematica's Manipulate function for interactive 2D plots
  • Learn about color functions in Mathematica for representing additional dimensions
  • Explore the use of ParametricPlot3D in Mathematica for 3D data visualization
  • Investigate methods for importing and processing data from Wien2k in Mathematica
USEFUL FOR

This discussion is beneficial for data scientists, physicists, and researchers who need to visualize complex 3D datasets in a simplified 2D format using Mathematica.

SrEstroncio
Messages
60
Reaction score
0
Hello. I was asked to import a number of data to mathematica from an output file for wien2k (based in fortran). The thing is, I have to draw a graph that considers a matrix full of data in three dimensions, but the graph itself should only have two parameters. To sum up: how to represent 3D data in 2D?
Also, I barely use mathematica. Help lol.
 
Physics news on Phys.org
Maybe you should be more specific about your data. If you can find a function which it fits into, then you could represent your 3D graph of this function as a set of 2D graphs, each of which contains one of its variables as a constant.
 
Depending on your data, you might be able to use color to indicate the 3rd dimension.

sampledata = Table[{t Cos[t], t Sin[t], t/4}, {t, 0, 2Pi, Pi/8}];

Show[Graphics[{PointSize[0.05], Map[{Hue[Last[#]/2], Point[Drop[#, -1]]} &, sampledata]}]]
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 2 ·
Replies
2
Views
14K
  • · Replies 3 ·
Replies
3
Views
5K