Applying GeoGebra
1) Insert all pieces in GeoGebra.
2) Redefine all right bottom corner points, for instance, A+(1,0)
in which A represents the correspondent left bottom corner point.
3) Hide all right bottom corner points.
4) Rename all remainder points A: P_1,...
5) Hide the axes.