Re: Change x-axis scale
- To: mathgroup at smc.vnet.net
- Subject: [mg123587] Re: Change x-axis scale
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Mon, 12 Dec 2011 06:43:28 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
On 12/11/11 at 3:49 AM, srcolwell at gmail.com (Scott Colwell) wrote: >I have been looking for about two hours for how to change the x-axis >in the following plot of a normal distribution. I must be going >blind because I can't find it. >Plot[PDF[NormalDistribution[0, 1], x], {x, -4, 4}, Axes -> >{True, False}] >This plots the x-axis with -4, -2, 0, 2, 4 >What I want is the scale to go from -4 to 4 by 1, so -4, -3, -2, -1, >0, 1, 2, 3, 4 Use Ticks. For example: Plot[PDF[NormalDistribution[0, 1], x], {x, -4, 4}, Axes -> {True, False}, Ticks -> {Range[-4, 4]}]