Here we're using a two-stringed phrase or shape (Major Scale 1-6). Let's see how the first shape changes as we move diatonically up the fretboard and down.
You should start seeing the following sclaes: Mixolydian-Aeolian-Locrian-Ionian-Dorian-Phriygian-Lydian
Doing this shows you how the shape works modally. It's best to extend this study throughout the 7 basic modes as well.
There is a sea of information here.