libpgplotxx.a (C++ interface to PGPLOT)

◆ pt()

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

draw symbols from series

This implements cpgpt functionality.

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

Definition at line 198 of file affpgplot.h.

Referenced by main().

199  {
200  typename aff::Browser<SX> ix=x;
201  typename aff::Browser<SY> iy=y;
202  float fx=float(*ix);
203  float fy=float(*iy);
204  while ((ix.valid()) && (iy.valid()))
205  { fx=float(*ix); fy=float(*iy);
206  dev.pt1(fx, fy, s); ++ix; ++iy; }
207  return(dev);
208  } // T& pt(T& dev, const SX& x, const SY& y, const int& s)
Here is the caller graph for this function: