LiveGraphics3D.pl - provides the ability to have an interactive 3D plot.
Macros for handling interactive 3D graphics.
This parses LiveGraphics3D data into Plotly traces. See https://www-users.cse.umn.edu/~rogness/lg3d/mma_syntax.html for information about the Mathematica syntax of the LiveGraphics3D format. Note that not all of the syntax is supported by this macro. Instead of creating this data directly, it is recommended to use one of the other LiveGraphics PG macros that generate this data. See LiveGraphicsCylindricalPlot3D.pl, LiveGraphicsParametricCurve3D.pl, LiveGraphicsParametricSurface3D.pl, LiveGraphicsRectangularPlot3D.pl, LiveGraphicsVectorField2D.pl, and LiveGraphicsVectorField3D.pl.
The following methods are provided.
Usage: LiveGraphics3D(options)
The following options can be given.
file => name
Name of the .m
file to load.
archive => name
Name of a .zip
file to load. If this is set, then the file
option must also be given, and must be set to the name of the file in the zip archive that contains the data.
input => 3Ddata
String containing Graphics3D data to be displayed by the applet.
size => [w, h]
Width and height of applet.
max_ticks => n
Maximum number of ticks to show on the x
, y
, and z
axes. This can be given as a single positive integer, or can be a reference to an array of three positive integers.
vars => [vars]
Hash of variables to pass as independent variables to the applet, together with their initial values, e.g., vars => [ a => 1, b => 1 ]
.
background => "#RRGGBB"
The background color to use (default is white).
image => file
A file containing an image to use in TeX mode.
tex_size => ratio
A scaling factor for the TeX image (as a portion of the line width). 1000 is 100%, 500 is 50%, etc.
tex_center => 0 or 1
Whether to center the image in TeX mode.
Usage: Live3Dfile($file, options)
Load a data file. This just calls LiveGraphics3D
with the file
option set to $file
. All other options supported by LiveGraphics3D
can also be given.
Usage: Live3Ddata($input, options)
Load raw Graphics3D data. This just calls LiveGraphics3D
with the input
option set to $input
. All other options supported by LiveGraphics3D
can also be given.