MathGroup Archive 2012

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

Search the Archive

Re: ListPlot question


On Apr 5, 6:53 am, JK <junkyung.... at gmail.com> wrote:
> I have a user defined function f[x]. I want to plot it discretely
> using ListPlot.
> Specifically, I want to do:
>
> ListPlot[f[x],{x,0,0.5,0.1}]
>
> So I want plot 5 point from the function with 5 sequence of arguments.
> However, the figure has an axis value of 0 to 5 instead of 0 to 0.5.
> Is there anyway to fix this?
>
> Thanks
> JK

Hi JK
Maybe this works for what you need.

ListPlot[Table[f[x],{x,0,0.5,0.1}],PlotRange -> {{0, 5}, All}]

best regards
Murta



  • Prev by Date: Re: 3D Rotations
  • Next by Date: Re: numerical integration
  • Previous by thread: ListPlot question
  • Next by thread: Re: ListPlot question