I'm working on a program which will allow users to plot up to 5 different channels with indepdnant y axes. I make them visible / invisible depending on how many channels are being plotted. Unfortunately, the axes start to overlap eachother. I decided to programmatically fix this
The code works just fine initially (for preventing the axes from overlaying eachother), but quickly mess up once you start making them visible / invisible.
Any thoughts / solutions?