RE: Plotting with logarithmic scale?
- To: mathgroup at smc.vnet.net
- Subject: [mg36534] RE: [mg36519] Plotting with logarithmic scale?
- From: "DrBob" <drbob at bigfoot.com>
- Date: Wed, 11 Sep 2002 03:27:57 -0400 (EDT)
- Reply-to: <drbob at bigfoot.com>
- Sender: owner-wri-mathgroup at wolfram.com
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