Debug plotting functions