ViewerSetFormat

Sets the format for viewers.

Synopsis

int ViewerSetFormat(Viewer v,int format,char *name)

Input Parameters

v -the viewer
format -the format
char -optional object name

Collective on Viewer

Notes

Available formats include
   VIEWER_FORMAT_ASCII_DEFAULT - default
   VIEWER_FORMAT_ASCII_MATLAB - Matlab format
   VIEWER_FORMAT_ASCII_IMPL - implementation-specific format
     (which is in many cases the same as the default)
   VIEWER_FORMAT_ASCII_INFO - basic information about object
   VIEWER_FORMAT_ASCII_INFO_LONG - more detailed info
      about object
   VIEWER_FORMAT_ASCII_COMMON - identical output format for
      all objects of a particular type
   VIEWER_FORMAT_BINARY_NATIVE - store the object to the binary
     file in its native format (for example, dense
      matrices are stored as dense)
   VIEWER_FORMAT_DRAW_BASIC - View the vector with a simple 1d plot
   VIEWER_FORMAT_DRAW_LG - View the vector with a line graph
   VIEWER_FORMAT_DRAW_CONTOUR - View the vector with a contour

These formats are most often used for viewing matrices and vectors. Currently, the object name is used only in the Matlab format.

Keywords

Viewer, file, set, format

See Also

ViewerFileOpenASCII(), ViewerFileOpenBinary(), MatView(), VecView(),
ViewerPushFormat(), ViewerPopFormat(), ViewerDrawOpenX(),ViewerMatlabOpen()

Location: src/viewer/impls/file/filev.c
Viewer Index
Table of Contents