I am currently working on a problem which involves plotting a fractal that has the form in the picture below
I am bit unsure how the fractal generations work. I believe we start with a single square, and then going from generation n to n+1 we place a new square at each diagonal of any square. I don't quite understand why this doesn't result in a fractal that looks like a giant net, but perhaps I will understand it better if i manage to code some of it.
Is there some smart way to work with grids in python? Any help is greatly appreciated as I do not have a lot of experience in working with and plotting fractals

