plotting bugfixes