Plot some 2d graphs in a 3d fashion

In summary, someone is asking how to plot 2d graphs in a 3d fashion, and suggests that you use excel or matlab. Different versions of excel may do things differently, so you may need to experiment to get the results you want.
  • #1
Si14
75
0
Hi,

How can I plot some 2d graphs in a 3d fashion like the following picture using excel or matlab?

2Molf.jpg


Any idea is appreciated.
 
Physics news on Phys.org
  • #2
gnuplot is easiest
 
  • #3
I don't know how to work with gnuplot. If anyone knows how to plot these with excel/matlab, that would be great.
 
  • #4
Different versions of Excel do things differently, so see if you can adapt this to yours.

You probably want the Chart Wizard to create a line graph, but before you do that you need to know what data you are going to graph.

Suppose your data points for your first curve are in A1:A10, your second curve are in B1:B10, your third curve are in C1:C10, etc. But you want to include an x and y offset for the second curve, double that offset for the third curve, etc. The offset you want to have will shift each curve up and to the right to give the 3D impression you are looking for. So for the second curve you substitute x-1 for every x (to shift it right) and you add 1 to the function (to shift it up). Then use -2 and +2 for the third curve, etc. This sounds like a lot of work. Maybe you can add constants to each of your cells to make this work. Or maybe there is a trick you might use. ROW() in a formula will give you the number of the row the cell is in, COLUMN() in a formula will give you the number of the column the cell is in. So if you insert ROW() or COLUMN() in your formulas in just the right places then you might be able to get each one offset by just what you need so that when you plot a Series of columns in Chart Wizard, one for each curve, it will give you your desired 3D effect.

Now you are probably going to have to experiment with this until you begin to see how to get it to do what you want. Start simple and make small changes until you hopefully see how to get this to do what you want
 
  • #5
Brilliant. I didn't think about it that way. Thanks man.
 

1. What does it mean to plot 2d graphs in a 3d fashion?

Plotting 2d graphs in a 3d fashion means representing 2d data in a 3d space, adding an extra dimension to the visual representation. This can be achieved by using techniques such as 3d bar charts, scatter plots with a height dimension, or surface plots.

2. Why would someone want to plot 2d graphs in a 3d fashion?

Plotting 2d graphs in a 3d fashion can help to better visualize complex data sets or relationships between variables. It can also add depth and dimension to the data, making it more engaging and easier to interpret.

3. What types of data are best represented by plotting 2d graphs in a 3d fashion?

Data sets that have multiple variables or dimensions can benefit from being plotted in 3d. This includes data with time series, spatial data, or data with multiple dependent variables that can be represented on different axes.

4. How can I create 3d plots of 2d graphs?

There are many software and programming tools available for creating 3d plots of 2d graphs. Some popular options include MATLAB, Python's Matplotlib library, and R's ggplot2 package. These tools have built-in functions and commands for creating various types of 3d plots.

5. Are there any limitations to plotting 2d graphs in a 3d fashion?

Yes, there can be limitations to plotting 2d graphs in a 3d fashion. These include difficulty in accurately representing data, potential distortion of the data due to the added dimension, and limited interpretation of the data in a 2d format. It's important to carefully consider the purpose and effectiveness of using 3d plots for a given data set before implementing them.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
72
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
2K
  • General Math
Replies
3
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
718
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
2K
Back
Top