plottools - Maple Programming Help

Home : Support : Online Help : Graphics : Packages : Plot Tools : plottools/exportplot

plottools

 exportplot
 export from a plot to a geometric data file

 Calling Sequence exportplot(fname, p, opts)

Parameters

 fname - path of the file p - a PLOT or PLOT3D structure opts - (optional) the format option as described below

Options

 • format : string corresponding to one of the supported export formats; if unspecified, the format is inferred from the file extension of fname

Description

 • The exportplot command retrieves geometric data from a plot structure and exports it to a file in the specified data format.
 • The command returns a number showing the count of bytes written to disk during the export.
 • It is also possible to export plot structures to an external graphics format, using the graphical export tools in the context-sensitive menu.
 • Export supports all 3-D plot structures except ISOSURFACE.

Supported Export Formats

 • Formats supported by exportplot include the following:
 Raster Graphics formats: GIF, JPEG, TIFF
 Vector Graphics formats: BYU, DXF, COLLADA, JVX, OBJ, OFF, PLY, POV, STL, VTK, WMF

Examples

 > $\mathrm{with}\left(\mathrm{plottools}\right):$
 > $\mathrm{stl}≔\mathrm{FileTools}:-\mathrm{JoinPath}\left(\left[\mathrm{FileTools}:-\mathrm{TemporaryDirectory}\left(\right),"seashell.stl"\right]\right)$
 ${\mathrm{stl}}{≔}{"/usr/local/repository/tmp/mpldoc_slot0/mpldoc2/seashell.stl"}$ (1)
 > $p≔\mathrm{plot3d}\left(-{1.2}^{x}\mathrm{sin}\left(y\right),x=-1..2\mathrm{Pi},y=0..\mathrm{Pi},\mathrm{coords}=\mathrm{spherical}\right):$
 > $\mathrm{exportplot}\left(\mathrm{stl},p\right)$
 ${230484}$ (2)
 > $\mathrm{importplot}\left(\mathrm{stl}\right)$

Compatibility

 • The plottools[exportplot] command was introduced in Maple 18.