fluxus.viz.FlowTextStyle#
- class fluxus.viz.FlowTextStyle(out=None, width=80)[source]#
A style for rendering flows as text.
- Bases:
TextStyle
,FlowStyle
- Metaclasses:
- Parameters:
out (
Optional
[TextIO
]) – the output stream this style instance writes to (defaults tosys.stdout
)width (
int
) – the maximum width available to render the text, defaults to 80
Method summary
See
pytools.viz.TextStyle.finalize_drawing()
Get the name of the default style associated with this style class.
See
pytools.viz.DrawingStyle.get_named_styles()
Render the given flow.
See
pytools.viz.TextStyle.start_drawing()
Attribute summary
The output stream this style instance writes to.
The maximum width of the text to be produced.
Definitions
- finalize_drawing(**kwargs)#
See
pytools.viz.TextStyle.finalize_drawing()
- classmethod get_default_style_name()[source]#
Get the name of the default style associated with this style class.
The default style is obtained by instantiating this style class without parameters.
Common examples for default style names are matplot and text.
- Return type:
- Returns:
the name of the default style
- classmethod get_named_styles()#
See
pytools.viz.DrawingStyle.get_named_styles()
- start_drawing(*, title, **kwargs)#
See
pytools.viz.TextStyle.start_drawing()