i need to generalize plotting more