- 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 the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
+ 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
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- 02110-1301, USA. */
-
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
ie: ... 0.1,0.2,0.5, 1,2,5, 10,20,50 ... */
double
chart_rounded_tick(double tick)
ie: ... 0.1,0.2,0.5, 1,2,5, 10,20,50 ... */
double
chart_rounded_tick(double tick)
static const double standard_ticks[] = {1, 2, 5, 10};
const double factor = pow(10,ceil(log10(standard_ticks[0] / tick))) ;
static const double standard_ticks[] = {1, 2, 5, 10};
const double factor = pow(10,ceil(log10(standard_ticks[0] / tick))) ;