This patch adds an additional style of axes. Only bottom and left axes, no frame. Axes are drawn only from the _col{X,Y}.min() to _col{X,Y}.max().
Changes in set.cc allow _axesStyle to be set to 101 . changes in draw.c accomplish the drawing of the axes.
Error if axes are drawn w/o data. Forces _axesStyle>0
but allows experimental styles over 100. Warns if an experimental style is detected.
This style of axes are advocated by Edward Tufte. He is a graphic designer, statistician, and Professor Emeritus at Yale University. For more info, see his book "The visual display of quantitative information" Graphic Press, Cheshire, Connecticut, USA, 2001.
Patches for draw.cc and set.cc atainst version 2.12.17
Logged In: YES
user_id=31559
Originator: NO
Thanks very much. I'm swamped at the moment, but I'll likely look at the patch this weekend.
Yes, Tufte's books are terrific. (In case it's of interest, the reason for the full-box style of gri axes is that I have very often found myself digitizing data from published figures that have been photocopied from bound journals. The process of photocopying introduces distortions to the figure, and I've found that figures with four-sided axes are the easiest to work with, because the sorts of distortions that occur become quite obvious in that case. But, publication today is normally in PDF, so I guess it's time for Gri to drop this convention, for users who wish to do so.)
NOTE: you can always do
# read data
draw axes none
draw curve
draw x axis at bottom
draw y axis at right