libpgplotxx.a (C++ interface to PGPLOT)

◆ gray() [1/3]

pgplot::basic_device & pgplot::pgaff::gray ( pgplot::basic_device dev,
const Tarray a,
const pgplot::Trange range,
const Ttransform tr 
)

function to plot gray image

Definition at line 52 of file affpgplot.cc.

References pgplot::basic_device::gray(), pgplot::Trange::max, and pgplot::Trange::min.

Referenced by gray(), and main().

56  {
57  aff::FortranArray<Tarray> fa(a, true);
58  float* pa=fa.castedpointer<float>();
59  int f1=fa.first(0);
60  int f2=fa.first(1);
61  int l1=fa.last(0);
62  int l2=fa.last(1);
63  int d1=fa.dimlast(0);
64  int d2=fa.dimlast(1);
65  dev.gray(pa, d1, d2, f1, l1, f2, l2,
66  range.min, range.max,
67  tr.pointer());
68  return(dev);
69  }
basic_device & gray(const float *a, int idim, int jdim, int i1, int i2, int j1, int j2, float fg, float bg, const float *tr)
plot gray scale image
Definition: basicdevice.h:188
float min
range [min....max]
Definition: structs.h:44
float max
Definition: structs.h:44
Here is the call graph for this function:
Here is the caller graph for this function: