[Date Index]
[Thread Index]
[Author Index]
Re: Axes scales on ListPlot family
*To*: mathgroup at smc.vnet.net
*Subject*: [mg125898] Re: Axes scales on ListPlot family
*From*: Bob Hanlon <hanlonr357 at gmail.com>
*Date*: Fri, 6 Apr 2012 05:56:41 -0400 (EDT)
*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com
*References*: <201204050950.FAA13132@smc.vnet.net>
f[x_] = x;
ListPlot[Table[f[i],
{i, 0, 1, 0.1}],
DataRange -> {0, 1}]
ListPlot[f /@ Range[0, 1, 0.1],
DataRange -> {0, 1}]
ListPlot[Table[{i, f[i]},
{i, 0, 1, 0.1}]]
ListPlot[{#, f[#]} & /@
Range[0, 1, 0.1]]
Bob Hanlon
On Thu, Apr 5, 2012 at 5:50 AM, JK <junkyung.auh at gmail.com> wrote:
> Hi all-
>
> I want to basically plot a user defined function discretely.
> Let's say f[x] is the function.
> What I want to do is:
>
> ListPlot[f[i],{i,0,1,0.1}]
>
> So I just want to plot the function with 10 arguments from 0 to 10 with incremental of 0.1. However, when we plot it, the x-axis is just the index which is 1 to 10 rather than 0 to 1. Is there anyway to fix this?
>
> Thanks
> JK
>
Prev by Date:
**Re: ListPlot question**
Next by Date:
**Re: Printing Notebooks without Input/Output cells**
Previous by thread:
**Re: Axes scales on ListPlot family**
Next by thread:
**Re: Axes scales on ListPlot family**
| |