fixed plotting to take all trials into account