Re: Tick mark function
- To: mathgroup at smc.vnet.net
- Subject: [mg68172] Re: Tick mark function
- From: "D. Grady" <D.C.Grady at gmail.com>
- Date: Thu, 27 Jul 2006 05:29:51 -0400 (EDT)
- References: <ea4k50$sen$1@smc.vnet.net><ea72hu$k5o$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Wow, I feel like an idiot. Adding curly braces is exactly what I needed to do; everything works fine now. Thanks to everyone who offered suggestions; I really appreciate it! -D. Grady Norbert Marxer wrote: > Hello > > All you have to do is to include curly brackets: e.g. > > Ticks -> {{Max[#1, #2]} &, None} > > Because the second argument (#2) is the maximum you don't even need the > function Max[...]. You could simply use: > > Ticks -> {{#2} &, None} > > Best Regards > Norbert Marxer > www.mec.li > > > D. Grady wrote: > > I'm working on a problem that involves creating a large group of > > ListPlots, and the scales of the individual plots are not necessarily > > similar. When displaying these plots together in a GraphicsArray, the > > tick mark values on the plot axes can be bunched so tightly that they > > are illegible. What I would like to do is display a single tick mark > > on each axis at the maximum value of the axis. In the documentation > > for Ticks, it says that you can supply a "function to be applied to > > x_min, x_max to get the tick mark option," but I've been unsuccesful in > > getting this to work. I've tried > > > > Ticks->{Max[#1,#2]&,None} > > Ticks->{Max[#]&,None} > > Ticks->{Max,None} > > > > to no avail. Does anyone know how this setting for Ticks is intended > > to function? I have spent some time going through the group archives > > and found many references to the DrawGraphics package which includes a > > CustomTicks function; if all else fails I'm sure that would be a > > solution, but I was hoping for something more straightforward. Thanks > > in advance!