Re: ListPlot question
- To: mathgroup at smc.vnet.net
- Subject: [mg125907] Re: ListPlot question
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Fri, 6 Apr 2012 05:59:49 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
On 4/5/12 at 5:49 AM, junkyung.auh at gmail.com (JK) 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? Use the DataRange option for ListPlot. For example: data = Range[5]^2; ListPlot[data, DataRange -> {0, 0.5}]