Miscellaneous functions for "grid" graphics
