handle missing curves in plot