plot.builtin: added cmap support
plot.builtin: fix legend problem
segments: fix allflags bug