Sometimes the Landau levels in a finite 2D sample drawn as in the figure below:
where the energy $E$ is graphed against the width $x$ of the sample in real space where $x=0$ and $x=W$ are the two edges of it. But sometimes it is also graphed in the $E$ vs $k$ plane as in the figure below:
Which one of them is the correct representation of the Landau levels?