replaced decimal module, xrchart_scale with autoformat, histogram x-axis ticks changed.
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 7 Jun 2015 21:10:07 +0000 (23:10 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Thu, 11 Jun 2015 12:24:19 +0000 (14:24 +0200)
commite0c5553451a33f2f3bcbd877da0b0e8551d09ff8
tree305b2f53124166c7a0d3cefd71cbd0f941da0003
parentd3487b8eeb911e0547acf72fe4481338d78d0721
replaced decimal module, xrchart_scale with autoformat, histogram x-axis ticks changed.

During gtk3 osx debugging the decimal unit crashed. I replaced the decimal computations
with traditional tick interval computation plus a printf format string generation which is
adapted to the chosen tick style.

The xrchart scales writing are adapted to use this mechanism. If the tick text is too long
to fit in the interval, then the tick label uses the existing rotation by 45 degrees. I added
some space below the x-axis to make the tick labels visible. Maybe the tick label placement
could also be done in two rows for the even and odd ticks.

The histogram x-axis tick generation is changed from a tick per bin to the usual
normal x-axis tick generation. This allows easier visual bin border identification.
The bin width is adapted to the chosen x-axis tick scale. Any number of bins can now
be visualized. This is according to the spss examples I found for the histograms.

Conflicts:
src/output/cairo-chart.c
16 files changed:
src/math/automake.mk
src/math/chart-geometry.c
src/math/chart-geometry.h
src/math/decimal.c [deleted file]
src/math/decimal.h [deleted file]
src/math/histogram.c
src/output/cairo-chart.c
src/output/cairo-chart.h
src/output/charts/plot-hist-cairo.c
tests/automake.mk
tests/math/chart-geometry-test.c [deleted file]
tests/math/chart-geometry.at
tests/math/chart-get-scale-test.c
tests/math/chart-get-ticks-format-test.c
tests/math/decimal-test.c [deleted file]
tests/math/decimal.at [deleted file]