Fix analysis plot generation