general plotting fixes