We'll take a look at the tabs for E Minor (or G Major) at the five main positions. The five modes that interest us are E Minor (Aeolian), A Dorian, B Phrygian, F# Locrian and D Mixolydian:

The same for B Minor (or D Major). The five modes that interest us are B Minor (Aeolian), E Dorian, F# Phrygian, C# Locrian and A Mixolydian:

After learning this, transpose to all the scales using the table:
|
Root
|
A
|
A#
Bb
|
B
|
C
|
C#
Db
|
D
|
D#
Eb
|
E
|
F
|
F#
Gb |
G |
G#
Ab |
n = fret
|
5
17
|
6
18
|
7
19
|
8
20
|
9
|
10
|
11
|
0
12
|
1
13
|
2
14
|
3
15
|
4
16
|
|