The command ListPlot will plot lists with a unit step. Is there any way to change the step size of this?
|
|
|||||
|
|
Two approaches:
|
|||
|
Lists don't save the value they have been generated with. Consider the example of plotting a sine using a discrete point set:
Notice the nonsense values on the $x$ axis. There are three possible solutions for this, all of which give the following plot as a result:
Using
|
If you know that the data is at equidistant places, you could just make a two-component list: data={Table[Sin[x],{x,0,2 Pi,Pi/10}],DataRange->{0,2 Pi}} and then ListPlot[data[[1]], data[[2]]] or even just ListPlot@@data. – celtschk Feb 10 '12 at 16:35 |
|
|
Perhaps you are looking for
|
|||
|
|




