libpgplotxx.a (C++ interface to PGPLOT)

◆ operator()()

Tpanel & pgplot::Ttiledpanels::operator() ( const int &  ix,
const int &  iy 
)

return subpanel

Definition at line 190 of file xpgplotxx.cc.

References Mnx, Mny, and Mpanels.

191  {
192  int iix=(ix<Mnx ? ix : Mnx-1);
193  int iiix=(iix>-1 ? iix : 0);
194  int iiy=(iy<Mny ? iy : Mny-1);
195  int iiiy=(iiy>-1 ? iiy : 0);
196  return(Mpanels[iiix+iiiy*Mnx]);
197  }
int Mnx
number of subpanels
Definition: xpgplotxx.h:293
Tpanel * Mpanels
array of subpanels
Definition: xpgplotxx.h:295