[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-commits] [SCM] GNU PSPP branch, output, updated. v0.6.1-706-ga2a92
From: |
Ben Pfaff |
Subject: |
[Pspp-commits] [SCM] GNU PSPP branch, output, updated. v0.6.1-706-ga2a92dd |
Date: |
Thu, 02 Jul 2009 23:59:11 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU PSPP".
The branch, output has been updated
via a2a92dd38cf37e50ccfd56bedd4da21bc56dfe0f (commit)
from 9bc7fd4e5d03e4960960d9b16339a680d6f9ae06 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a2a92dd38cf37e50ccfd56bedd4da21bc56dfe0f
Author: Ben Pfaff <address@hidden>
Date: Thu Jul 2 16:59:08 2009 -0700
output: Refactor implementation of charts.
This commit addresses a weakness of the charts implementation in PSPP, in
that charts can only be sent to a single output device. This is because
the chart code calls into a single output driver to obtain a libplot
plotting context and then passes that back into the calling code, which
draws on it and passes it back to the output driver. This commit refactors
the code so that, instead, a chart is an ADT that is reponsible for knowing
how to draw itself on a plotting device. Then the function for outputting
a chart applies this function to each output device.
This is more complicated than necessary: we could just loop over the set of
output devices and draw a chart on each one in turn. But this level of
complication is being introduced now so that later we can keep around
charts in memory as long as necessary for the GUI output engine to export
them on user demand.
This commit introduces a couple of regressions:
* libplot is now required, not optional.
* Box-whisker plots are disabled.
This regressions will be fixed by later commits.
-----------------------------------------------------------------------
Summary of changes:
src/language/stats/examine.q | 196 ++++++++++++++++++++++++----------
src/language/stats/frequencies.q | 13 +--
src/output/ascii.c | 47 +++-----
src/output/cairo.c | 37 +------
src/output/chart-provider.h | 74 +++++++++++++
src/output/chart.c | 203 ++++++++++++++++++++----------------
src/output/chart.h | 82 ++-------------
src/output/charts/automake.mk | 4 -
src/output/charts/cartesian.c | 62 ++++-------
src/output/charts/cartesian.h | 14 ++-
src/output/charts/piechart.c | 188 ++++++++++++++++++++-------------
src/output/charts/piechart.h | 5 +-
src/output/charts/plot-chart.c | 190 ++++++++++++++-------------------
src/output/charts/plot-chart.h | 23 +++--
src/output/charts/plot-hist.c | 217 ++++++++++++++++++++++----------------
src/output/charts/plot-hist.h | 27 +++---
src/output/html.c | 52 +++++----
src/output/manager.c | 2 +-
src/output/manager.h | 3 +-
src/output/output.h | 4 +-
src/output/postscript.c | 160 ++++++++++++++--------------
21 files changed, 857 insertions(+), 746 deletions(-)
create mode 100644 src/output/chart-provider.h
hooks/post-receive
--
GNU PSPP
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-commits] [SCM] GNU PSPP branch, output, updated. v0.6.1-706-ga2a92dd,
Ben Pfaff <=