libpgplotxx.a (C++ interface to PGPLOT)

◆ setstyle()

Tboxstyle & pgplot::Tboxstyle::setstyle ( const int &  elem,
const Tlinestyle style 
)

set linestyle

Definition at line 268 of file xpgplotxx.cc.

References pgplot::boxflags::Faxis, pgplot::boxflags::Fframe, pgplot::boxflags::Fgrid, pgplot::boxflags::Fxlabels, pgplot::boxflags::Fxticks, pgplot::boxflags::Fylabels, pgplot::boxflags::Fyticks, Maxisstyle, Mgridstyle, Mlabelstyle, and Mticksstyle.

269  {
270  if (elem&Fframe) {
271  } else if (elem&Faxis) {
272  Maxisstyle=style;
273  } else if (elem&Fgrid) {
274  Mgridstyle=style;
275  } else if (elem&(Fxticks|Fyticks)) {
276  Mticksstyle=style;
277  } else if (elem&(Fxlabels|Fylabels)) {
278  Mlabelstyle=style;
279  }
280  return(*this);
281  }
Tlinestyle Maxisstyle
axis linestyle
Definition: xpgplotxx.h:514
Tlinestyle Mgridstyle
grid linestyle
Definition: xpgplotxx.h:498
Tlinestyle Mticksstyle
ticks linestyle
Definition: xpgplotxx.h:526
Tlinestyle Mlabelstyle
labels linestyle
Definition: xpgplotxx.h:534