some plotting fixes