Lines Matching refs:num_ticks
477 static double find_step(double first, double last, int num_ticks) in find_step() argument
481 double step = (last - first) / num_ticks; in find_step()
488 && (last - first) / (step * mini_step[cur_mini_step]) > num_ticks) in find_step()
501 void set_xticks(struct plot *plot, int num_ticks, int first, int last) in set_xticks() argument
515 step = find_step(first, last, num_ticks); in set_xticks()
520 num_ticks = (double)(last - first - step) / step + 1; in set_xticks()
523 for (i = 0; i < num_ticks; i++) { in set_xticks()
603 void set_yticks(struct plot *plot, int num_ticks, int first, int last, char *units) in set_yticks() argument
605 int pixels_per_tick = graph_height / num_ticks; in set_yticks()
606 int step = (last - first) / num_ticks; in set_yticks()
613 for (i = 0; i < num_ticks; i++) { in set_yticks()