MathGroup Archive 2002

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

Search the Archive

RE: Plotting with logarithmic scale?


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];

If you want both scales to be logarithmic, use

Plot[Log@f@Exp@x, {x, 0, Log[8Pi]}, PlotRange -> All];

The first is always possible if you only have positive x to deal with,
and the second is possible if x and y are BOTH positive.

Bobby Treat

-----Original Message-----
From: Soxos [mailto:soxos at libero.it] 
To: mathgroup at smc.vnet.net
Subject: [mg36534] [mg36519] Plotting with logarithmic scale?


How can I plot (2d) functions using a logarithmic scale for the X-axis?

Thanks







  • Prev by Date: Re: Plotting with logarithmic scale?
  • Next by Date: Using Slide View in mathematica 4.2
  • Previous by thread: Re: Plotting with logarithmic scale?
  • Next by thread: Re: Plotting with logarithmic scale?