fixed plot offset indexing