0
$\begingroup$

I need to plot a discrete linear function III(i)=i, so

III = Table[i, {i, 0, 1, .1}];

Y[x_] := x;

ListLinePlot[III, Ticks -> {Automatic}]

Plot[Y[x], {x, 0, 1}]

The plot have ticks for each discrete step 0.1, so that x-axis are multiplied ten-fold the and the origin is displaced.

How i convert the discret plot in the same form of the continnum plot?

enter image description here

$\endgroup$
  • 3
    $\begingroup$ Look up DataRange. $\endgroup$ – J. M. will be back soon Feb 27 '16 at 1:45
  • 1
    $\begingroup$ III = Table[{i,i}, {i, 0, 1, .1}]; should do $\endgroup$ – tsuresuregusa Feb 27 '16 at 1:46
1
$\begingroup$

As J. M. mentioned, use DataRange

ListLinePlot[III, Ticks -> {Automatic}, DataRange -> {0, 1}]

Plot

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.