I am developing a app for Guitar Scales and want to implement Scale Shapes. And my question is, if is there any logic in those particular shapes(some are four frets stretched, one five, some notes out of box etc.) or just ease of playing with fingers? Note I am talking about basic 5 scale shape and not 3NPS shapes. And what about flexibility with different tunings?
The 5 scale shape:

Source: Discover Guitar Online
Edit: I approached the box method for making shapes adding with few exceptions, different tunings work fine with slight manipulation. Here's the link if you are interested: https://play.google.com/store/apps/details?id=com.guitarco.guitarcoscales&hl=en&gl=US


