Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9490 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-04-06 09:59 +0000 |
| Last post | 2012-04-06 09:59 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Axes scales on ListPlot family Bob Hanlon <hanlonr357@gmail.com> - 2012-04-06 09:59 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-04-06 09:59 +0000 |
| Subject | Re: Axes scales on ListPlot family |
| Message-ID | <jlmeqa$men$1@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@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 top | Article view | comp.soft-sys.math.mathematica
csiph-web