matplotlib 3.5.1

Parameters
_dispatch(table, min, max=None, state=None, args=('raw',))

Parameters

table : dict[int, callable]

The dispatch table to be filled in.

min, max : int

Range of opcodes that calls the registered function; max defaults to min.

state : _dvistate, optional

State of the Dvi object in which these opcodes are allowed.

args : list[str], default: ['raw']

Sequence of argument specifications:

  • 'raw': opcode minus minimum

  • 'u1': read one unsigned byte

  • 'u4': read four bytes, treat as an unsigned number

  • 's4': read four bytes, treat as a signed number

  • 'slen': read (opcode - minimum) bytes, treat as signed

  • 'slen1': read (opcode - minimum + 1) bytes, treat as signed

  • 'ulen1': read (opcode - minimum + 1) bytes, treat as unsigned

  • 'olen1': read (opcode - minimum + 1) bytes, treat as unsigned if under four bytes, signed if four bytes

Decorator for dispatch by opcode. Sets the values in table from min to max to this method, adds a check that the Dvi state matches state if not None, reads arguments from the file according to args.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/dviread.py#127
type: <class 'function'>
Commit: