plot generation code and sample outputs