add segment and quad, improve plotting glyph functionality