fix to_rgba(), add detail to lines and legend