minor changes to contrast plotting gist