0
$\begingroup$

In the picture below, I am trying to align the maximum of the ListLinePlot of meandata1 so that it is at x=0. I tried using AxesOrigin, but that only shifted the axes on the graph and not the dataset itself. Could anyone please advise on how I could align the maximum of the plot with x=0, or, in other words, how I could shift the dataset so that the maximum is at x=0? If this matters, the dataset that I am working with is intensity data extracted from an image using ImageData. Any help would be greatly appreciated!

enter image description here

$\endgroup$
1
  • 1
    $\begingroup$ Use DataRange-> {-700,580} $\endgroup$ Commented Nov 7, 2022 at 22:36

1 Answer 1

1
$\begingroup$

DataRange

Consider:

data = Table[Sin[(x - 700)/100], {x, 1, 1280, 1}];
ListPlot[data]
ListPlot[data, DataRange -> {-700, 580}]

enter image description here

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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