Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9490

Re: Axes scales on ListPlot family

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Axes scales on ListPlot family
Date 2012-04-06 09:59 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jlmeqa$men$1@smc.vnet.net> (permalink)
References <201204050950.FAA13132@smc.vnet.net>

Show all headers | View raw


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@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
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Axes scales on ListPlot family Bob Hanlon <hanlonr357@gmail.com> - 2012-04-06 09:59 +0000

csiph-web