MathGroup Archive 2007

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

Search the Archive

Re: Log of y-axis data?


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


  • Prev by Date: Re: How to compile this module?
  • Next by Date: Re: random points!
  • Previous by thread: Re: Log of y-axis data?
  • Next by thread: Bug with 3D graphics lines