Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 293 → Rev 294

/cvi/instr/HISTO/H2D.c
82,7 → 82,7
}
 
idx = x+y*h2[h2d]->nx;
h2[h2d]->data[idx]+=val;
h2[h2d]->data[idx]=val;
//Printf("%d %d data %f %f\n",x,y,val, h2[h2d]->data[idx]);
if (h2[h2d]->data[idx]>h2[h2d]->max) h2[h2d]->max= h2[h2d]->data[idx];
if (h2[h2d]->data[idx]<h2[h2d]->min) h2[h2d]->min= h2[h2d]->data[idx];
287,6 → 287,7
 
if (*plothandle> 0 ) DeleteGraphPlot (panel, control, *plothandle, VAL_IMMEDIATE_DRAW);
H2D_SetRangeColors(H2D_GetMin(histogram),H2D_GetMax(histogram));
//printf("%f %f\n",H2D_GetMin(histogram),H2D_GetMax(histogram)) ;
*plothandle = PlotScaledIntensity (panel, control,
H2D_GetData(histogram),
H2D_GetNbinsX(histogram),