* Make curve selection optional to avoid flickering in depth plots * Replace undefined with zero for some curves * Add spacing factor for min and max depth