Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2905

Re: Mathematica plots

From Heike Gramberg <heike.gramberg@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Mathematica plots
Date 2011-06-02 23:10 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <is959d$5v5$1@smc.vnet.net> (permalink)

Show all headers | View raw


As far as I know, you can't change the direction of the axes directly but you can get around this by using
the Ticks option. Suppose for example that you want to plot Exp[x] with the y-axis going from high to low,
then you could do something like

Plot[-Exp[x], {x, 1, 5}, Ticks -> {Automatic,
   With[{range == Range[0, -Round[Exp[5]], -20]},
    Transpose[{range, -range}]]}]

Heike.

On 2 Jun 2011, at 12:17, nivk wrote:

> Hi,
>
> I would like to know how to change the range of a plot on the y-axis to g=
o from larger to smaller numbers.
>
> Here's an example:
> http://spiff.rit.edu/classes/phys230/lectures/clusters/cm_pleiades.png
>
> I tried using PlotRange-> but that didn't make any difference.
>
> Thanks!
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Mathematica plots Heike Gramberg <heike.gramberg@gmail.com> - 2011-06-02 23:10 +0000

csiph-web