I'd like to shift my graph so the periodogram is centered.

I was able to rotate the original using Rotate Right, but now I can't shift the graph in the y dimension.

Thank you for your help!

ListPlot3D[RotateRight[PDG01, Round[dm/2]]]


  • 1
    $\begingroup$ Also, try ListPlot3D[ list , PlotRegion->All] to prevent the plot from cutting off some values. $\endgroup$ – Kagaratsch May 5 '19 at 16:38

You can achieve the desired result by doing the following:

rotateX=RotateRight[PDG01, Round[dm/2]];
rotateXY=Transpose[RotateRight[Transpose[rotateX], Round[dm/2]]];


Since your x- and y-dimensions are of different length, you'll have to adjust the Round[dm/2] value during y-rotation appropriately.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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