Lines Matching refs:tm
42 static void shorten(struct tickmark *tm, int nticks, int *power_of_ten, in shorten() argument
51 str = tm[i].string; in shorten()
82 str = tm[i].string; in shorten()
90 int calc_tickmarks(double min, double max, int nticks, struct tickmark **tm, in calc_tickmarks() argument
109 *tm = malloc(sizeof(**tm) * count); in calc_tickmarks()
113 (*tm)[i].value = x; in calc_tickmarks()
114 sprintf((*tm)[i].string, str, x); in calc_tickmarks()
117 shorten(*tm, i, power_of_ten, use_KMG_symbols, base_offset); in calc_tickmarks()
127 struct tickmark *tm = NULL;
129 nticks = calc_tickmarks(x, y, 10, &tm);
132 printf(" (%s) %g\n", tm[i].string, tm[i].value);
135 free(tm);