Moved some plotting code to channels.