sheaf::plot Class Reference

A class for constructing files to be read by gnuplot. More...

#include <plot.h>

Public Types

enum  plot_type { QUADRATIC, LINEAR, CONSTANT }
 Type of curve to fit. More...

Public Member Functions

virtual bool invariant () const
 Class invariant. More...
 plot (const char *xdriver, const char **xcurve_labels, int xnum_curves=1, const char *xxlabel="", const char *xylabel="", const plot_type *xtypes=0)
 Constructor. More...
virtual ~plot ()
 Destructor. More...
double * create_point ()
 An empty array for point data. More...
void add_point (double *xpoint)
 Add a data point. More...

Detailed Description

A class for constructing files to be read by gnuplot.

Definition at line 37 of file plot.h.

Member Enumeration Documentation

◆ plot_type

Type of curve to fit.

Definition at line 60 of file plot.h.

Constructor & Destructor Documentation

◆ plot()

sheaf::plot::plot ( const char *  xdriver,
const char **  xcurve_labels,
int  xnum_curves = 1,
const char *  xxlabel = "",
const char *  xylabel = "",
const plot_type xtypes = 0 


  • xnum_curves > 0
  • -unexecutable( "length of xcurve_labels == xnum_curves" )
  • -unexecutable( "xtypes == 0 || size of xtypes == xnum_curves" )

Definition at line 55 of file

References ~plot().

Referenced by invariant().

◆ ~plot()

sheaf::plot::~plot ( )


Definition at line 262 of file

References create_point().

Referenced by plot().

Member Function Documentation

◆ add_point()

void sheaf::plot::add_point ( double *  xpoint)

Add a data point.

  • -unexecutable( "length of xpoint == _num_curves+1" )

Definition at line 303 of file

Referenced by create_point().

◆ create_point()

double * sheaf::plot::create_point ( )

An empty array for point data.

  • -unexecutable( "length of result == _num_curves+1" )

Definition at line 282 of file

References add_point().

Referenced by ~plot().

◆ invariant()

bool sheaf::plot::invariant ( ) const

Class invariant.

Definition at line 38 of file

References plot().

The documentation for this class was generated from the following files: