Changeset 42389 for trunk/Ohana/src/opihi/cmd.data/limits.c
- Timestamp:
- Feb 8, 2023, 12:17:35 PM (3 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/cmd.data/limits.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
trunk/Ohana/src/opihi/cmd.data/limits.c
r40291 r42389 61 61 APPLY = TRUE; 62 62 } 63 63 64 char *name = NULL; 64 65 if ((N = get_argument (argc, argv, "-n"))) { … … 67 68 remove_argument (N, &argc, argv); 68 69 } 69 70 70 if (!GetGraph (&graphmode, &kapa, name)) return (FALSE); 71 71 FREE (name); 72 73 // this is not super intuitive 74 if ((N = get_argument (argc, argv, "-boxsize"))) { 75 remove_argument (N, &argc, argv); 76 float dx, dy; 77 // ask kapa for the size of the graph region in pixels 78 KapaGetLimits (kapa, &dx, &dy); 79 set_variable ("KAPA_XPIX", fabs(dx)); 80 set_variable ("KAPA_YPIX", fabs(dy)); 81 } 72 82 73 83 // XXX need an option to set the limits based on the current image bounds … … 169 179 return (TRUE); 170 180 } 181 182 /* -minX value : the minimum X axis value will be no higher than this value 183 -maxX value : the maximum X axis value will be no lower than this value 184 -delX value : the range of the X axis will be at least this value 185 186 These can be used to prevent the range from collapsing. 187 These are only used if the -a option is supplied, otherwise the supplied or auto-calculated 188 ranges are used (this seems like an poor choice) 189 190 */ 191 192 193
Note:
See TracChangeset
for help on using the changeset viewer.
