MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plotting with logarithmic scale?


"DrBob" <drbob at bigfoot.com> wrote:
> This graphs f from 0 to 8 Pi on a logarithmic horizontal scale:
>
> f[x_] := 1 + Abs[Sin[x]/x]
> Plot[f@Exp@x, {x, 0, Log[8Pi]}, PlotRange -> All];

The graph itself is indeed what is desired, but the labelling of the x-axis
is then incorrect for a logarithmic scale. For example, regardless of the
scale used, any proper graph must show that the first minimum occurs at
x = Pi. But the method you suggest makes it seem that it occurs at approx.
1.14 (precisely Log[Pi]).

David

> -----Original Message-----
> From: Soxos [mailto:soxos at libero.it]
To: mathgroup at smc.vnet.net
> Subject: [mg36554]  Plotting with logarithmic scale?
>
> How can I plot (2d) functions using a logarithmic scale for the X-axis?



  • Prev by Date: Re: A symbol for Floor
  • Next by Date: Re: NIntegrate
  • Previous by thread: Re: Plotting with logarithmic scale?
  • Next by thread: executing a notebook from the command line