libpgplotxx.a (C++ interface to PGPLOT)

◆ line()

template<class T , class SX , class SY >
T& pgplot::pgaff::line ( T &  dev,
const SX &  x,
const SY &  y 
)

draw an open polygon from a dense series

This implements cpgline functionality.

Parameters
devdevice to be plotted on
xseries of x-coordinates
ycorresponding series of y-coordinates
SXseries class for x
SYseries class for y
Tpgplot device class
Returns
returns a reference to the device context

Definition at line 112 of file affpgplot.h.

Referenced by main().

113  {
114  typename aff::Browser<SX> ix=x;
115  typename aff::Browser<SY> iy=y;
116  float fx=float(*ix);
117  float fy=float(*iy);
118  dev.move(fx, fy);
119  while ((ix.valid()) && (iy.valid()))
120  { fx=float(*ix); fy=float(*iy); dev.draw(fx, fy); ++ix; ++iy; }
121  return(dev);
122  }
Here is the caller graph for this function: