Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7123 > unrolled thread
| Started by | Scott Colwell <srcolwell@gmail.com> |
|---|---|
| First post | 2011-12-11 08:58 +0000 |
| Last post | 2011-12-13 10:43 +0000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Change x-axis scale Scott Colwell <srcolwell@gmail.com> - 2011-12-11 08:58 +0000
Re: Change x-axis scale Helen Read <readhpr@gmail.com> - 2011-12-12 11:51 +0000
Re: Change x-axis scale Scott Colwell <srcolwell@gmail.com> - 2011-12-13 10:43 +0000
| From | Scott Colwell <srcolwell@gmail.com> |
|---|---|
| Date | 2011-12-11 08:58 +0000 |
| Subject | Change x-axis scale |
| Message-ID | <jc1rci$t4a$1@smc.vnet.net> |
Hi There,
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
Could someone please give me a hand with this.
Thanks,
[toc] | [next] | [standalone]
| From | Helen Read <readhpr@gmail.com> |
|---|---|
| Date | 2011-12-12 11:51 +0000 |
| Message-ID | <jc4ps1$cn9$1@smc.vnet.net> |
| In reply to | #7123 |
On 12/11/2011 3:58 AM, Scott Colwell wrote:
> Hi There,
>
> 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
>
> Could someone please give me a hand with this.
>
> Thanks,
>
Look up Ticks in the Documentation. For example:
Plot[PDF[NormalDistribution[0, 1], x], {x, -4, 4},
Axes -> {True, False}, Ticks -> {Range[-4, 4], None}]
--
Helen Read
University of Vermont
[toc] | [prev] | [next] | [standalone]
| From | Scott Colwell <srcolwell@gmail.com> |
|---|---|
| Date | 2011-12-13 10:43 +0000 |
| Message-ID | <jc7a95$oq2$1@smc.vnet.net> |
| In reply to | #7123 |
Thank you all
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web