IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39652 for trunk


Ignore:
Timestamp:
Aug 9, 2016, 12:32:32 PM (10 years ago)
Author:
eugene
Message:

init graphdata elements fLabelRange* and fMinor*

Location:
trunk/Ohana/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kapa2/src/Graphs.c

    r38986 r39652  
    2626    graph[0].axis[i].fMinor = 5.0;
    2727  }   
    28   graph[0].data.ticktextPad = NAN;
    2928
    30   graph[0].data.labelPadXm = NAN;
    31   graph[0].data.labelPadXp = NAN;
    32   graph[0].data.labelPadYm = NAN;
    33   graph[0].data.labelPadYp = NAN;
    34 
    35   graph[0].data.padXm = NAN;
    36   graph[0].data.padXp = NAN;
    37   graph[0].data.padYm = NAN;
    38   graph[0].data.padYp = NAN;
    39 
    40   graph[0].data.fLabelRangeXm = 1.0;
    41   graph[0].data.fLabelRangeXp = 1.0;
    42   graph[0].data.fLabelRangeYm = 1.0;
    43   graph[0].data.fLabelRangeYp = 1.0;
    44 
    45   graph[0].data.fMinorXm = 5.0;
    46   graph[0].data.fMinorXp = 5.0;
    47   graph[0].data.fMinorYm = 5.0;
    48   graph[0].data.fMinorYp = 5.0;
     29  KapaInitGraph (&graph[0].data);
    4930
    5031  for (i = 0; i < 8; i++) {
    5132    strcpy (graph[0].label[i].text, "");
    5233  }
    53 
    54   graph[0].data.xmin = 0.0;
    55   graph[0].data.xmax = 1.0;
    56   graph[0].data.ymin = 0.0;
    57   graph[0].data.ymax = 1.0;
    58 
    59   graph[0].data.style   = 2;            // points
    60   graph[0].data.ptype   = 2;            // + for points
    61   graph[0].data.ltype   = 0;            // solid line
    62   graph[0].data.etype   = 0;            // no error bars
    63   graph[0].data.ebar    = 0;            // no cross bar
    64   graph[0].data.color   = 0;            // black
    65   graph[0].data.lweight = 0.5;          // line weight of 0.5
    66   graph[0].data.size    = 1.0;          // point size of 1.0
    67 
    68   graph[0].data.flipeast = TRUE;        // +East  = -X by default
    69   graph[0].data.flipnorth = FALSE;      // +North = +Y by default
    70 
    71   InitCoords (&graph[0].data.coords, "DEC--LIN");
    72   strcpy (graph[0].data.axis, "2222");
    73   strcpy (graph[0].data.ticks, "2222");
    74   strcpy (graph[0].data.labels, "2222");
    7534
    7635  graph[0].Nobjects = 0;
  • trunk/Ohana/src/libkapa/src/KapaWindow.c

    r38986 r39652  
    9393  graphdata[0].xmin = graphdata[0].ymin = 0.0;
    9494  graphdata[0].xmax = graphdata[0].ymax = 1.0;
    95   graphdata[0].style = graphdata[0].ptype = 0;
     95
     96  graphdata[0].style = graphdata[0].ptype = 2;
    9697  graphdata[0].ltype = graphdata[0].color = 0;
    9798  graphdata[0].etype = graphdata[0].ebar = 0;
     
    117118  graphdata[0].padYm = NAN;
    118119  graphdata[0].padYp = NAN;
     120
     121  graphdata[0].fLabelRangeXm = 1.0;
     122  graphdata[0].fLabelRangeXp = 1.0;
     123  graphdata[0].fLabelRangeYm = 1.0;
     124  graphdata[0].fLabelRangeYp = 1.0;
     125
     126  graphdata[0].fMinorXm = 5.0;
     127  graphdata[0].fMinorXp = 5.0;
     128  graphdata[0].fMinorYm = 5.0;
     129  graphdata[0].fMinorYp = 5.0;
    119130
    120131  return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.