MathGroup Archive 2008

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

Search the Archive

Re: Axis in two scales


Nacho wrote:

> I have a dataset in pairs (x,y) that I would like to plot. The main
> problem is that the data set has interesting parts in the beginning
> that I would like to view clearly.
> 
> As an example, create the following table:
> 
> t = Table[{x, If[x < .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
> ListPlot[t]
> 
> You have a very detailed sine in the beginnng and the rest is less
> interesting.
> 
> I would like to "split" the X axis in two, so the left half of the
> plot covers x={0,0.5} and the second half x={0.5,5}] in the same plot
> and with the right ticks.
> 
> It is like a piecewise axis... is it possible?

Not exactly a piecewise axis but the function *ListLogLinearPlot* should 
produce something close enough to what you have in mind.

     t = Table[{x, If[x < .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
     ListPlot[t]
     ListLogLinearPlot[t]

Regards,
-- Jean-Marc


  • Prev by Date: Re: Axis in two scales
  • Next by Date: Re: Axis in two scales
  • Previous by thread: Re: Axis in two scales
  • Next by thread: Re: Axis in two scales