libpgplotxx.a (C++ interface to PGPLOT)

◆ series_errb()

template<class T , class SX , class SY , class SE >
T& pgplot::series_errb ( T &  dev,
const SX &  x,
const SY &  y,
const SE &  e,
const Eerrdir dir = Fdirver,
const float &  t = 1. 
)

draw error bars from series

This implements cpgerrb functionality.

The following is required for class SX, SY and SE:

  1. BrowserT the type of an appropriate browser

The browser must provide

  1. hot() true if pointing to valid element
Parameters
devdevice to be plotted on
xseries of x-coordinates
ycorresponding series of y-coordinates
ecorresponding series of error bars
tlength of terminals to be drawn
SXseries class for x
SYseries class for y
SEseries class for e
Tpgplot device class
Returns
returns a reference to the device context

Definition at line 734 of file xpgplotxx.h.

736  {
737  typename SX::BrowserT ix=x;
738  typename SY::BrowserT iy=y;
739  typename SE::BrowserT ie=e;
740  float fx=float(*ix);
741  float fy=float(*iy);
742  float fe=float(*ie);
743  int idir=int(dir);
744  while ((ix.hot()) && (iy.hot()) && (ie.hot()))
745  { fx=float(*ix); fy=float(*iy); fe=float(*ie);
746  dev.err1(idir, fx, fy, fe, t); ++ix; ++iy; ++ie; }
747  return(dev);
748  }