Generalizing compartment plotting