Re: Log of y-axis data?
- To: mathgroup at smc.vnet.net
- Subject: [mg81010] Re: Log of y-axis data?
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Fri, 7 Sep 2007 02:15:52 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <fbojsv$jg0$1@smc.vnet.net>
efifer at fas.harvard.edu wrote:
> I was wondering if someone could help me create a graph that takes the Log of
> the y-axis data (which is Fourier of my data list). To clarify....
>
> My original graph is as follows:
>
> ListPlot[Log[Abs[Fourier[
> data]]], PlotJoined -> True, PlotRange -> {{0, 10000}, {0, 5}}]
>
> Where data is :
>
> data = Table[Sum[ampout[i]*Sin[(2.*π*freq[i])*t], {i,
> 1, 18}], {t, 0, 1, .0001}]
I believe that what you are looking for is the function
*LinearLogListPlot*, for version 5, or *ListLogPlot*, for version 6. For
instance,
(* Mathematica Version # < 6.0 *)
Needs["Graphics`Graphics`"]
LinearLogListPlot[10^Range[10], PlotStyle -> PointSize[0.02]];
(* Mathematica Version # >= 6.0 *)
ListLogPlot[10^Range[10], PlotStyle -> PointSize[0.02]]
--
Jean-Marc