0
$\begingroup$

This question already has an answer here:

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$

marked as duplicate by m_goldberg, MarcoB, user9660, Mr.Wizard plotting Feb 28 '16 at 11:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 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.