A6.1 Using DisplayFunction
This section delves into the technical aspects of how Mathematica creates graphics.
When graphics are created in Mathematica, the default behavior is to create them automatically inside the notebook. It is possible to redefine the default behavior to send graphics to Dynamic Visualizer.
Each graphics command, such as Plot3D, includes DisplayFunction as one of its options.
The default behavior for all three-dimensional plotting commands is to use $DisplayFunction, which then generates PostScript output in the notebook.
To override this behavior, you can always include an explicit DisplayFunction option when generating the graphics. You can send the graphics to Dynamic Visualizer immediately.
Typical settings for DisplayFunction option
Alternatively, you can change the default behavior for all graphics commands by changing $DisplayFunction. For example, you can make objects appear in Dynamic Visualizer.
After setting this default, Plot3D will create graphics in Dynamic Visualizer (unless you include an explicit DisplayFunction option).
This produces the following graphic in Dynamic Visualizer.
The SurfaceGraphics in Dynamic Visualizer.
This sets $DisplayFunction back to its original value.
Note that $SystemDisplayFunction is actually defined by the Dynamic Visualizer package when it is first loaded.