Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: Plotting with logarithmic scale?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg36554] Re: Plotting with logarithmic scale?
  • From: "David W. Cantrell" <DWCantrell at sigmaxi.org>
  • Date: Wed, 11 Sep 2002 13:27:39 -0400 (EDT)
  • Organization: NewsReader.Com Subscriber
  • References: <almrps$4mh$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"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