module graphhelper.blockdiag_helper

Short summary

module pyensae.graphhelper.blockdiag_helper

Various functions about blockdiag.

Functions

function

truncated documentation

_build_diagram

Inspired from blockdiag source file (_bootstrap.py).

_create_fontmap

Inspired from blockdiag source file (_bootstrap.py).

_detectfont

draw_diagram

Draws a graph based on module blockdiag.

Documentation

Various functions about blockdiag.

New in version 1.1.

source on GitHub

pyensae.graphhelper.blockdiag_helper._build_diagram(module, builder, drawer, tree, type, code, fontmap=None, antialias=True, nodoctype=False, transparency=False, size=None)

Inspired from blockdiag source file (_bootstrap.py).

source on GitHub

pyensae.graphhelper.blockdiag_helper._create_fontmap(fontmap, font)

Inspired from blockdiag source file (_bootstrap.py).

source on GitHub

pyensae.graphhelper.blockdiag_helper._detectfont(font)
pyensae.graphhelper.blockdiag_helper.draw_diagram(graph, module='blockdiag', format='pillow', **options)

Draws a graph based on module blockdiag.

Parameters:
  • graph – graph definition, see syntax

  • module'blockdiag' (only available value)

  • format – can be a filename or a module name ('pillow')

  • options – additional options for blockdiag

Returns:

graph

blockdiag {
    A -> B -> C -> D;
    A -> E -> F -> G;
}

See notebook Display a diagram with blockdiag.

source on GitHub