- #1
member 428835
Hi PF!
I have a list of numbers, and I'm trying to plot each constant value on a 1-unit long interval. What I'm trying is this
but that generates plots that are not on the same axes. Any help?
I have a list of numbers, and I'm trying to plot each constant value on a 1-unit long interval. What I'm trying is this
Code:
a = Table[i, {i, 2, 8}];
For[i = 1, i < 5, i++, Plot[a[[i]], {x, i - 1, i}] // Print]
but that generates plots that are not on the same axes. Any help?
Last edited by a moderator: