def xypic_draw_diagram(diagram, masked=None, diagram_format='', groups=None, **hints):
 grid = DiagramGrid(diagram, groups, **hints)
 drawer = XypicDiagramDrawer()
 return drawer.draw(diagram, grid, masked, diagram_format)

def xypic_draw_diagram ( diagram , masked = None , diagram_format = '' , groups = None , ** hints ) : grid = DiagramGrid ( diagram , groups , ** hints ) drawer = XypicDiagramDrawer ( ) return drawer . draw ( diagram , grid , masked , diagram_format )
provides a shortcut combining :class:diagramgrid and :class:xypicdiagramdrawer .