X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fchart-geometry.h;h=67d35bb62fe423afcd248859c1db5e119c00ff39;hb=f89d8a893f83ad0cb95819ca60e6f4a718f7d988;hp=ef481feb40cbf130cab59bd51c240e2cc4a2ffaf;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp diff --git a/src/math/chart-geometry.h b/src/math/chart-geometry.h index ef481feb40..67d35bb62f 100644 --- a/src/math/chart-geometry.h +++ b/src/math/chart-geometry.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,6 +18,14 @@ #ifndef CHART_GEOMETRY_H #define CHART_GEOMETRY_H -double chart_rounded_tick(double tick); +struct decimal; +void chart_rounded_tick (double tick, struct decimal *); + +void chart_get_scale (double high, double low, + struct decimal *lower, struct decimal *interval, int *n_ticks); + +char * +chart_get_ticks_format (const double max, const double min, const unsigned int nticks, + double *scale); #endif