Re: Add custom points to automatically generated Ticks?
- To: mathgroup at smc.vnet.net
- Subject: [mg80611] Re: Add custom points to automatically generated Ticks?
- From: Helen Read <hpr at together.net>
- Date: Sun, 26 Aug 2007 23:16:33 -0400 (EDT)
- References: <farahm$4nl$1@smc.vnet.net>
- Reply-to: HPR <read at math.uvm.edu>
KvS wrote: > Dear all, > > I have an ordinary plot like Plot[x^2,{x,0,10}] and I would like to > add to the x-axis one or two special points , to point out where > certain parameters are located. How to do this in a graphically > attractive way? I have tried to use Epilog with a (vertical) Line and > a Text, but I can't get the Text to be displayed properly below the x- > axis. > > I have read about Ticks and I was wondering whether there is an easy > way to use that, were "easy" would mean that I don't have to specify > the whole set of Ticks manually, but can first make a plot without any > additional points, then somehow subtract from there the Ticks > generated by Mathematica, then add one or two custum ones and finally > create a new plot with those adjusted Ticks. > > Any hints? > > Thanks in advance! Something like this? Plot[x^2, {x, 0, 10}, Ticks -> {Flatten[{Range[2, 10, 2], 3.5, 4.7}], Automatic}] -- Helen Read University of Vermont