Changeset 5850 for trunk/Ohana/src/opihi/cmd.astro/region.c
- Timestamp:
- Dec 27, 2005, 3:21:40 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/region.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/region.c
r5386 r5850 3 3 int region (int argc, char **argv) { 4 4 5 char buffer[65],string[256];5 char string[256]; 6 6 double Ra, Dec, Radius; 7 7 double dx, dy; … … 60 60 61 61 /* ask kapa for coordinate limits, so get the right aspect ratio */ 62 SendGraphCommand (Xgraph, 4, "LIMS"); 63 read (Xgraph, buffer, 30); 64 sscanf (buffer, "%*s %lf %lf", &dx, &dy); 62 KiiSendCommand (Xgraph, 4, "LIMS"); 63 KiiScanMessage (Xgraph, "%lf %lf", &dx, &dy); 65 64 dx = fabs (dx); 66 65 dy = fabs (dy); … … 102 101 graphmode.coords.cdelt1 = graphmode.coords.cdelt2 = 1.0; 103 102 104 SendGraphCommand (Xgraph, 4, "ERAS"); 105 SendGraphCommand (Xgraph, 4, "SLIM"); 106 SendGraphMessage (Xgraph, "%f %f %f %f", graphmode.xmin, graphmode.xmax, graphmode.ymin, graphmode.ymax); 103 KapaClear (Xgraph, FALSE); 104 KapaSetLimits (Xgraph, &graphmode); 107 105 106 /* drop this? */ 108 107 sprintf (string, "%8.4f %8.4f (%f)", Ra, Dec, Radius); 109 SendLabel (string, Xgraph, 2);108 KapaSendLabel (Xgraph, string, 2); 110 109 111 110 SetGraph (graphmode); 112 113 111 return (TRUE); 114 115 112 } 116 113
Note:
See TracChangeset
for help on using the changeset viewer.
