pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rotating chart axis labels


From: John Darrington
Subject: Rotating chart axis labels
Date: Tue, 8 May 2012 10:50:20 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

I'm trying to further improve the appearance of histograms and other
charts.  One of the problems we still have is the x-axis labels clashing
with one another.

I think a good solution would be to have them orientated at 45 deg when there
are lots of bins.  This is  what other software does
 (http://www.tulane.edu/~panda2/Analysis2/one-way/histog1.jpg)

Pango/Cairo makes it quite easy to do this.  But I'm not sure how it would fit
in with our existing code.  For example xrchart_label in 
src/output/cairo-chart.c
looks like:

void xrchart_label (cairo_t *, int horz_justify, int vert_justify,
                    double font_size, const char *);

How do we express rotated text in terms of horizontal and vertical 
justification?
Maybe  we should generalize this interface?

Ideas?

J'

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://keys.gnupg.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]