Moved EgMIN/MAX to plotting section, to avoid confusion.