class plotmtv

Class interfacing to the plotmtv program.

Public Fields

[more]bool hold
set this to true for multiplots
[more]bool save
set this to true if file needs to be saved
[more]bool freshstart
set this to true if new file is to be created
[more]bool display
set this to true to to have plot displayed
[more]std::string toplabel
labels
[more]int linewidth
varies fom 1-32
[more]int markersize
varies from 1-10
[more]int fontsize
varies from 1-30

Public Methods

[more] plotmtv(int id=0)
Constructor.
[more] ~plotmtv()
Destructor.
[more]void plot(const Vec &x, const Vec &y, std::string line="b|", std::string marker="ro")
2-D plot.
[more]void plot(const Mat &z, const double xrange[2]=plotmtv_ZERO_ONE, const double yrange[2]=plotmtv_ZERO_ONE, const double zrange[2]=plotmtv_ZERO_ONE)
3-D plot on regular/uniform mesh.
[more]void plot(const Vec &x, const Vec &y, const Vec &z)
3-D plot on non-uniform, rectilinear mesh.
[more]void plot(const Mat &x, const Mat &y, const Mat &z)
3-D plot on general, irregular mesh.


Documentation

Class interfacing to the plotmtv program. Can do 2-d or simple 3-d plots. Arguments take typically either Vector or Matrix instances. Relies on 'system' command to launch plotmtv program (thus only runs on UNIX-like OS).
obool hold
set this to true for multiplots

obool save
set this to true if file needs to be saved

obool freshstart
set this to true if new file is to be created

obool display
set this to true to to have plot displayed

ostd::string toplabel
labels

oint linewidth
varies fom 1-32

oint markersize
varies from 1-10

oint fontsize
varies from 1-30

o plotmtv(int id=0)
Constructor. Takes care of opening the file.
Parameters:
id - if set to zero, a radom file name will be generated. Otherwise the filename will bear the name "table<id>.mtv".

o ~plotmtv()
Destructor. Close file.

ovoid plot(const Vec &x, const Vec &y, std::string line="b|", std::string marker="ro")
2-D plot.

Colours can be k (black), y (yellow), c (cyan), g (green), r (red), b (blue), m (magenta), p (pink), s (steelblue), n (brown). Lines can be ' ' (none), | (solid), l (dashed), ! (dotted-dashed), : (dotted) Markers can be ' ' (none), . (dots), +, x, s (squares), l (lozenges), \^ (up-triangles), v (down-triangles), o

Parameters:
- x abscissae
- y ordinates
line - line colour/type. Examples are "r:" (red dotted), "b|" (blue solid), "gI" (green dotted)
marker - marker colour/type. Examples are "ro", "bx", "g."

ovoid plot(const Mat &z, const double xrange[2]=plotmtv_ZERO_ONE, const double yrange[2]=plotmtv_ZERO_ONE, const double zrange[2]=plotmtv_ZERO_ONE)
3-D plot on regular/uniform mesh.
Parameters:
z - elevation
xrange - min/max along x (default is {0., 1.})
yrange - min/max along y (default is {0., 1.})
zrange - min/max along z (default is {0., 1.})

ovoid plot(const Vec &x, const Vec &y, const Vec &z)
3-D plot on non-uniform, rectilinear mesh.
Parameters:
- x coordinates
- y coordinates
z - elevation

ovoid plot(const Mat &x, const Mat &y, const Mat &z)
3-D plot on general, irregular mesh.
Parameters:
- x coordinates
- y coordinates
z - elevation


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.