Plotting_1.gif > Plotting_2.gif

SIMULATIONTOOLS TUTORIAL Plotting_3.gif

Plotting

SimulationTools allows you to use the standard Mathematica plotting functions on DataTables and DataRegions.  Where appropriate, information about the coordinate range of the data is determined automatically, avoiding the need to specify it manually as would be the case when using data in lists only.  Here we show some examples of what can be done.

Array Plot

To demonstrate plotting 2D simulation data, we use the example data from a numerical relativity binary black hole simulation:

In[1]:=

Plotting_4.gif

Out[1]=

Plotting_5.gif

The resulting 2D DataRegion can be plotted directly with ArrayPlot:

In[2]:=

Plotting_6.gif

Out[2]=

Plotting_7.gif

Mathematica chooses the colour scheme automatically.  We can improve the information content and appearance of the plot further:

In[3]:=

Plotting_8.gif

Out[3]=

Graphics:Binary Black Hole Conformal Factor (x > 0)

Height-map plot

In[4]:=

Plotting_10.gif

Out[4]=

Plotting_11.gif

Contour Plot

In[5]:=

Plotting_12.gif

Out[5]=

Plotting_13.gif

Volume render

As of Mathematica version 9, volume rendering is supported.

In[6]:=

Plotting_14.gif

Out[6]=

Plotting_15.gif

Created with the Wolfram Language