56     return - OMUTEMP.
COSTY * (y - OMUTEMP.
oY) + OMUTEMP.
tmin; 
    68     static int x1, y1, x2, y2, dx, dy;
    69     static int xp1, xp2, xp3, yp1, yp2, yp3, 
p, pol;
   104                     if((pe->
mouse.
state & Button1Mask) && x1 > 0 && f) 
   140                                 sprintf(buff, 
"%.1f", OMUTEMP.
locx);
   144                                 sprintf(buff, 
"%.1f", OMUTEMP.
locy);
   168     OMUTEMP.
oY = OMUTEMP.
hsize - 10; 
   169     OMUTEMP.
eX = OMUTEMP.
wsize - 10; 
   213     incry = (sy - ey) / ny;
   214     for(j = 1; j < ny; j++)
   217         Y = sy - ((int)incry * j);
   219         Y1 = sy - ((int)incry * j);
   225     incrx = (double)(ex - sx) / nx;
   226     for(j = 1; j < nx; j++)
   228         X = sx + 1 + ((int)incrx * j); 
   230         X1 = sx + 1 + ((int)incrx * j);
   265     for(t = xinf; t < xsup; t++)
   267         for(j = yinf; j < ysup; j++)
   273             if(plotmat[t * ysup + j] < low) low = plotmat[t * ysup + j];
   274             if(plotmat[t * ysup + j] > high) high = plotmat[t * ysup + j];
   280     OMUTEMP.
tmax = high + (float) 0.5;
   309     int xd, i,k, xinf,xsup;
   312     double linterinf, lintersup;
   318         k = (
sizeof OMUTEMP.
lblx / 
sizeof OMUTEMP.
lblx[0] ); 
   321         sprintf(buf,
"%d", xs);
   325         sprintf(buf,
"%d", xc);
   329         sprintf(buf,
"%d", xe);
   336         linterinf = (double)xinf / (k/2);
   337         lintersup = (double)xsup / (k/2);
   339         for (i = k/2 - 1 ;i> 0; i--)
   342             sprintf(buf,
"%.0lf", xc - ((k/2 - i) * linterinf) );
   345         for (i = k/2 + 1 ;i< k - 1; i++)
   348             sprintf(buf,
"%.0lf", xc + ((i - k/2) * lintersup) );
   356         linter = xd / (
sizeof OMUTEMP.
lblx / 
sizeof OMUTEMP.
lblx[0] - 1);
   357         k = (
sizeof OMUTEMP.
lblx / 
sizeof OMUTEMP.
lblx[0] );
   361         sprintf(buf,
"%d", xc);
   379     lintery = yd / (
sizeof OMUTEMP.
lbly / 
sizeof OMUTEMP.
lbly[0] );
   381     k=
sizeof OMUTEMP.
lbly / 
sizeof OMUTEMP.
lbly[0] ;
   382     for (i =l;i<= h;i+=lintery)
   384         sprintf(buf,
"%.1lf", i);
   386             sprintf(buf,
"%.1lf", h);
   393                   int idy, 
unsigned long pe[], 
double costx, 
double costy, 
int min, 
int max,
   396     int t, j, k = 0,er = 0;
   399     for(t = 0 ; t < idx ; t++)
   401         for(j = 0; j < idy ; j++)
   407                 X = (int) (ox + (t *  costx));
   408                 Y = (int) (oy - abs((
int)((double)(plotmat[t * idy + j] - min) / costy)));
   410                 X1 = (int) (ox + (t + 1) * costx);
   411                 Y1 = (int) (oy - abs((
int)((double)(plotmat[t * idy + j + idy] - min) / costy)));
   452     OMUTEMP.
COSTY = (double)(OMUTEMP.
tmax - OMUTEMP.
tmin) / (double)(OMUTEMP.
oY - OMUTEMP.
eY);
   453     OMUTEMP.
COSTX = (double)(OMUTEMP.
eX - OMUTEMP.
oX) / (double) (OMUTEMP.
dimx);
   763     for (i=0;i<(
sizeof OMUTEMP.
lblx / 
sizeof OMUTEMP.
lblx[0]);i++)
 short DB_BG_lblUP[3]
Background Capital Letters Labels Color UP. 
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT MCreateTButton(MOBJECT parent, const char *text, MTFont font)
short DB_FG_Plbl[3]
Foreground PASSIVE Label Colors. 
void MDrawXorLine(MOBJECT p, int x1, int y1, int x2, int y2)
void MObjectSetShadow(MOBJECT obj, int type, int in, int out)
void MDrawLine(MOBJECT p, int x1, int y1, int x2, int y2, MTColor col)
double D2D_Y2Counts(int y)
int MObjectGetHeight(MOBJECT obj)
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
Control Panel and push buttons colors . 
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
short DB_BG_Albl[3]
Background ACTIVE Label Colors. 
void MObjectAlign(MOBJECT obj, int h_align, int v_align)
void MTableFormSetColAlign(MOBJECT form, int col, int al)
void MObjectSetText(MOBJECT obj, const char *text)
short DB_BG_RButt[3]
Background Radio Buttons. 
int MObjectGetWidth(MOBJECT obj)
MOBJECT MObjectShell(MOBJECT obj)
int RefreshDrArea(MOBJECT obj)
Redraw the draw arwa in a 2D Plot window. 
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
int D2D_findmaxmin(float plotmat[], int xinf, int xsup, int yinf, int ysup)
void MTButtonSetCallback(MOBJECT button, OBJ_VALUE_CB cb, void *data)
void D2D_AssignOrigin(MOBJECT obj)
MOBJECT MDCreate_2DPlot(char *title)
2DPlot Panel. Procedure that build the shell for the plotting of the LOG files. 
void MObjectSetFGColorFromParent(MOBJECT obj, int true_false)
MOBJECT MCreateScrollBar(MOBJECT parent, int type, long n, long max)
void MScrollBarSetSliderColorShift(MOBJECT p, int percentage)
short DB_FG_Albl[3]
Foreground ACTIVE Label Colors. 
MOBJECT MCreateDrawArea(MOBJECT parent, int width, int height)
MOBJECT MCreateColForm(MOBJECT parent)
void ToggleButtCB(MOBJECT p, MVALUE od, void *ad)
void MObjectRedraw(MOBJECT obj)
short DB_BG_Plbl[3]
Background PASSIVE Label Colors. 
void D2D_PlotAxis(MOBJECT ob, int sx, int sy, int ex, int ey, MTColor col)
void MDrawAreaSetExposeCallback(MOBJECT obj, OBJ_EVENT_CB cb, void *ad)
void D2D_AreaInputTemp(MOBJECT obj, MEvent *pe, void *a_data)
void MDrawAreaSetInputCallback(MOBJECT obj, OBJ_EVENT_CB cb, void *ad)
MOBJECT MCreateShell(const char *title, int flags)
void D2D_PlotSpectrum(MOBJECT obj, float plotmat[], int idx, int idy, unsigned long pe[], double costx, double costy, int min, int max, int ox, int oy)
void D2D_PlotGrid(MOBJECT ob, MIMAGE mim, int sx, int sy, int ex, int ey, int nx, int ny)
structure for OMU temperatures . 
short DB_BG[3]
Default Background Color. 
void MDrawXorBox(MOBJECT p, int x, int y, int w, int h)
void MObjectUnmap(MOBJECT obj)
short DB_FG_RButt[3]
Foreground Radio Buttons. 
Bortul Image Library Structure . 
int DrawAreaTempCB(MOBJECT obj, MEvent *pexp, void *a_data)
void MFormSetSpacing(MOBJECT p, int offset)
int MTButtonGetActivationStatus(MOBJECT o)
unsigned int state
buttons and key modifiers mask 
void MObjectMap(MOBJECT obj)
void MObjectSetTransparency(MOBJECT obj, CARD8 level)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT MCreateRowForm(MOBJECT parent)
int x
pointer x, y coordinates in event window 
void MTopAttach(MOBJECT child, int att_type, int off, MOBJECT obj)
short DB_FG_lblUP[3]
Foreground Capital Letters Labels Color UP. 
void D2D_PoslblY(float l, float h)
void D2D_PoslblX(MOBJECT lbl, int xs, int xe, int xc)