Home Blog Archive Internet Mathematica: 3D Plots - so you can create you

Mathematica: 3D Plots - so you can create you

  • Oct 28, 2025
  • 1715
  • 0

In Mathematica, you can create 3D Plots for your data. We explain in this practical tip, how it works and how they represent your values best.

To create 3D Plots in Mathematica

A 3D-Plot you can create in Mathematica, if you have understood how to make a 3D Plot is constructed. Additional settings and visualization options we show you in the subsequent image gallery.
  1. The Graph that you as a 3D-Plot want to output, must be specified as a discrete Matrix.
  2. The x-th line is the x-coordinate, the y-th column coordinate of the y. The entry stored in the z-coordinate.
  3. Mathematica of Cartesian coordinates, with equally spaced entries.
  4. To create such a Matrix by means of Tables, for example: "mat = Table[Cos[x + y], {x, 1, 2}, {y, 1, 4}];"
  5. But you can also manually enter values in the Form "mat = {{x1y1, x1y2, x1y3, x1y4}, {x2y1, x2y2, x2y3, x2y4}};".
  6. "mat" can be plotted by means of the "ListPlot3D[mat]". The values contained in "mat" are the z-coordinates, row and column number for the x - and y-coordinates.
  7. Using "list density plot[mat]" you can plot the same graph in two space-dimensions. The third Dimension is shown here on the color.
Mathematica 3D Plot

Mathematica 3D Plot example

How to create a 3D-Plot in Mathematica, to illustrate, we again in the following example:
  1. To give you a function with two variables, such as "z= Cos[x + y];" for a plane wave. "x", "y" and "z" are the three dimensions of space.
  2. This function allows you to sample now: "area = Table[Table[z, {x, 0, 3}], {y, 0, 3}];" Here set "{x, 0, 3}" and "{y, 0, 3}" in the range of 0 to 3 in both directions in space.
  3. "area" looks now so: "{{1, Cos[1] Cos[2] Cos[3]}, {Cos[1] Cos[2] Cos[3] Cos[4]}, {Cos[2] Cos[3] Cos[4], Cos[5]}, {Cos[3] Cos[4], Cos[5], Cos[6]}}"The Matrix notation is shown in the figure.
  4. By default, Mathematica in steps of One from 0 to 3. Smaller steps you can enter behind the area Definition, to increase, for example, "{x, 0, 3, 0.5}", the spatial accuracy, i.e. increasing x in steps of 0.5.
  5. Using "ListPlot3D[area]" generate graphs of the 3D.
  6. Two more views of this 3D plot can be found in the photo gallery.
Mathematica: 3D-Array, and Plot
In Mathematica Plots, export , or edit WAV files you will learn other practical tips. This article Wolfram Mathematica 9 refers.

Latest Videos

"ListPlot3D" generates by default a section of the three-dimensional interpolated graph with grid lines, a contoured Box, and the axles.

"ListPlot3D" generates by default a section of the three-dimensional interpolated graph with grid lines, a contoured Box, and the axles.

By means of a "Boxed" > "False", you can remove the Box by "AxesOrigin" > "{x,y,z}" the origin of the space axes set.

"False" you can remove the Box by "AxesOrigin" > "{x,y,z}" the origin of the space set of axes." /> "False" you can use the Box remove, by "AxesOrigin" > "{x,y,z}" the origin of the space axes set." />

By means of a "Boxed" > "False", you can remove the Box by "AxesOrigin" > "{x,y,z}" the origin of the space axes set.

The interpolation order can be set by means of "interpolation order" > x". You should not use Box, you need to adjust the aspect ratio using "BoxRatios-> {y,x,z}".

x" setting. You should not use Box, you need to adjust the aspect ratio using "BoxRatios-> {y,x,z}"." /> x" setting. You should not use Box, you need to adjust the aspect ratio using "BoxRatios-> {y,x,z}"." />

The interpolation order can be set by means of "interpolation order" > x". You should not use Box, you need to adjust the aspect ratio using "BoxRatios-> {y,x,z}".

The entire graph display, click on the "plot range" > "All". The grid to remove them by means of "Mesh" > "None" and using the "ViewPoint" > "{x,y,z}" to determine the perspective.

"All". The grid to remove them by means of "Mesh" > "None" and using the "ViewPoint" > "{x,y,z}" to determine the perspective." /> "All". The grid to remove them by means of "Mesh" > "None" and using the "ViewPoint" > "{x,y,z}" to determine the perspective." />

The entire graph display, click on the "plot range" > "All". The grid to remove them by means of "Mesh" > "None" and using the "ViewPoint" > "{x,y,z}" to determine the perspective.

In order to determine the displayed cutting yourself, type in: "plot range" > "{{xmin,xmax},{ymin,ymax}, {zmin,zmax}}". Make sure that the axes still lie in the plotted area. By means of "Mesh" > "a", a total of signed a grid lines, "Mesh" > "{50, 1}", creates 50 lines in the x and 1 in y-direction.

"{{xmin,xmax},{ymin,ymax}, {zmin,zmax}}". Make sure that the axes still lie in the plotted area. By means of "Mesh" > "a", a total of signed a grid lines, "Mesh" > "{50, 1}", creates 50 lines in the x and 1 in y-direction." /> "{{xmin,xmax},{ymin,ymax}, {zmin,zmax}}". Make sure that the axes still lie in the plotted area. By means of "Mesh" > "a", a total of signed a grid lines, "Mesh" > "{50, 1}", creates 50 lines in the x and 1 in y-direction." />

In order to determine the displayed cutting yourself, type in: "plot range" > "{{xmin,xmax},{ymin,ymax}, {zmin,zmax}}". Make sure that the axes still lie in the plotted area. By means of "Mesh" > "a", a total of signed a grid lines, "Mesh" > "{50, 1}", creates 50 lines in the x and 1 in y-direction.

Alternatively, there are analytical 3D Plots of the function "SphericalPlots3D", in the function you want to plot, as a function in spherical coordinates given must be.

Alternatively, there are analytical 3D Plots of the function "SphericalPlots3D", in the function you want to plot, as a function in spherical coordinates given must be.

Sometimes, it is the content of a Matrix is not three dimensional, rather than two-dimensional "list density plot[]" or "list of contour plot[]" to spend. In the first variant, the z is encoded axis on the color. In the second variant, the height lines are also marked.

Sometimes, it is the content of a Matrix is not three dimensional, rather than two-dimensional "list density plot[]" or "list of contour plot[]" to spend. In the first variant, the z is encoded axis on the color. In the second variant, the height lines are also marked.

YOU MAY ALSO LIKE

0 COMMENTS

LEAVE A COMMENT

Human?
1 + 3 =