>

SIMULATIONTOOLS TUTORIAL |

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]:=

Out[1]=

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

In[2]:=

Out[2]=

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

In[3]:=

Out[3]=

Height-map plot

In[4]:=

Out[4]=

Contour Plot

In[5]:=

Out[5]=

Volume render

As of Mathematica version 9, volume rendering is supported.

In[6]:=

Out[6]=