Added Ydir to plotting section.