pgfplots, it's possible to turn on or off printing of axis lines and ticks using
axis lines for all axes or
axis x line (etc.) for only selected axes. However, sometimes it is desirable to print the ticks and labels but not the axis lines themselves. This is a style not dissimilar to those recommended by Edward Tufte (see also Is there a package that provides graphing in the style of Ed Tufte?), but it's useful even if that's not the key concern, for example for making very small plots for abstracts or similar. What is the best way to achieve this?
There are a couple of steps required to remove the lines and then 'tidy up' the ticks. The lines are removed using the
which unlike setting
A short example:
gives the output
For very small-scale plots, missing out one of the axes may be sensible: the easies way to do this is to set the ticks to