41 #ifndef TF_AFFPGPLOT_H_VERSION 43 #define TF_AFFPGPLOT_H_VERSION \ 48 #include<aff/series.h> 49 #include<aff/iterator.h> 79 const bool& xisfirst=
true);
84 const bool& xisfirst=
true);
89 const bool& xisfirst=
true);
111 template<
class T,
class SX,
class SY>
112 T&
line(T& dev,
const SX& x,
const SY& y)
114 typename aff::Browser<SX> ix=x;
115 typename aff::Browser<SY> iy=y;
119 while ((ix.valid()) && (iy.valid()))
120 { fx=float(*ix); fy=float(*iy); dev.draw(fx, fy); ++ix; ++iy; }
163 template<
class T,
class SX,
class SY,
class SE>
164 T&
errb(T& dev,
const SX& x,
const SY& y,
const SE& e,
167 typename aff::Browser<SX> ix=x;
168 typename aff::Browser<SY> iy=y;
169 typename aff::Browser<SE> ie=e;
174 while ((ix.valid()) && (iy.valid()) && (ie.valid()))
175 { fx=float(*ix); fy=float(*iy); fe=float(*ie);
176 dev.err1(idir, fx, fy, fe, t); ++ix; ++iy; ++ie; }
197 template<
class T,
class SX,
class SY>
198 T&
pt(T& dev,
const SX& x,
const SY& y,
const int& s)
200 typename aff::Browser<SX> ix=x;
201 typename aff::Browser<SY> iy=y;
204 while ((ix.valid()) && (iy.valid()))
205 { fx=float(*ix); fy=float(*iy);
206 dev.pt1(fx, fy, s); ++ix; ++iy; }
216 #endif // TF_AFFPGPLOT_H_VERSION (includeguard)
contains all pgplot stuff
Trange array_value_range(const Tarray::Tcoc &a)
return range of values
pgplot::basic_device & gray(pgplot::basic_device &dev, const Tarray &a, const pgplot::Trange &range, const Ttransform &tr)
function to plot gray image
C++ interface for PGPLOT.
Eerrdir
error bar directions
T & 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
aff::Series< float > Tseries
aff::Array< float > Tarray
array type to be passed to gray function
Trange series_value_range(const Tseries::Tcoc &a)
aff::SimpleRigidArray< float, 6 > Ttransform
transform matrix for gray shade plot function
T & line(T &dev, const SX &x, const SY &y)
draw an open polygon from a dense series
T & pt(T &dev, const SX &x, const SY &y, const int &s)
draw symbols from series
Ttransform create_transform(const Tarray::Tcoc &a, const pgplot::Trect &rect, const bool &xisfirst)
create standard transform array