Re: Drawing tick labels without ticks
- To: mathgroup at smc.vnet.net
- Subject: [mg80642] Re: Drawing tick labels without ticks
- From: Fred <guest at msn.com>
- Date: Tue, 28 Aug 2007 02:04:17 -0400 (EDT)
- References: <far9qs$4bp$1@smc.vnet.net>
> Can anyone suggest a simple method for keeping tick labels in a graph > without also drawing axes or the ticks themselves? As an example, > > ListPlot[{1, 2, 3, 4, 5}, AxesStyle -> Opacity[0], TicksStyle -> > Opacity[1]] > > comes close to what I'm after, but doesn't quite get there. I'd like > for nothing to appear in the plot except the data points and the tick > labels. > > There doesn't seem to be a way to target specifically the tick labels > without also afftecting the tick marks or the axes. LabelStyle will > target tick labels, but it has a lower precedence than both AxesStyle > and TickStyle, so if I use either of those options to turn off the axes > and ticks, it will also turn off labels. > > It's my hope that there is a simple solution that I'm overlooking. If > the only way around this is to go through a complicated process of > extracting tick labels from a dummy graphic and then pasting them in to > the actual graphic, I may as well use a different program. Thanks for > your help! Something along these lines? ticks = Table[{i, i, ticksize}, {i, 0, 5}] /. ticksize -> 0.001 ListPlot[{1, 2, 3, 4, 5}, AxesStyle -> White, Ticks -> {ticks, ticks, Automatic}, AxesOrigin -> {0, 0}, TicksStyle -> Directive[Black, 12]] Fred.