slight mod to kernel plotting to handle empty kernels