IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2005, 5:38:38 PM (21 years ago)
Author:
eugene
Message:

converted Xgraph messages to SendGraphCommand

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.astro/region.c

    r2843 r3692  
    6161 
    6262  /* ask kapa for coordinate limits, so get the right aspect ratio */
    63   status = write (Xgraph, "LIMS", 4);
     63  SendGraphCommand (Xgraph, 4, "LIMS");
    6464  read (Xgraph, buffer, 30);
    6565  sscanf (buffer, "%*s %lf %lf", &dx, &dy);
     
    100100  graphmode.coords.cdelt1 = graphmode.coords.cdelt2 = 1.0;
    101101
    102   write (Xgraph, "ERAS", 4);
    103    
    104   write (Xgraph, "SLIM", 4);
    105   sprintf (buffer, "%f %f %f %f ", graphmode.xmin, graphmode.xmax, graphmode.ymin, graphmode.ymax);
    106   sprintf (buffer2, "NBYTES: %6d ", strlen (buffer));
    107   write (Xgraph, buffer2, 16);
    108   write (Xgraph, buffer, strlen (buffer));
     102  SendGraphCommand (Xgraph, 4, "ERAS");
     103  SendGraphCommand (Xgraph, 4, "SLIM");
     104  SendGraphMessage (Xgraph, "%f %f %f %f", graphmode.xmin, graphmode.xmax, graphmode.ymin, graphmode.ymax);
    109105
    110106  sprintf (string, "%8.4f %8.4f (%f)", Ra, Dec, Radius);
Note: See TracChangeset for help on using the changeset viewer.