fluxus.viz.FlowTextStyle#

class fluxus.viz.FlowTextStyle(out=None, width=80)[source]#

A style for rendering flows as text.

Bases:

TextStyle, FlowStyle

Metaclasses:

ABCMeta

Parameters:
  • out (Optional[TextIO]) – the output stream this style instance writes to (defaults to sys.stdout)

  • width (int) – the maximum width available to render the text, defaults to 80

Method summary

finalize_drawing

See pytools.viz.TextStyle.finalize_drawing()

get_default_style_name

Get the name of the default style associated with this style class.

get_named_styles

See pytools.viz.DrawingStyle.get_named_styles()

render_flow

Render the given flow.

start_drawing

See pytools.viz.TextStyle.start_drawing()

Attribute summary

out

The output stream this style instance writes to.

width

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:

str

Returns:

the name of the default style

classmethod get_named_styles()#

See pytools.viz.DrawingStyle.get_named_styles()

render_flow(flow)[source]#

Render the given flow.

Parameters:

flow (Conduit[Any]) – the flow to render

Return type:

None

start_drawing(*, title, **kwargs)#

See pytools.viz.TextStyle.start_drawing()

out: TextIO#

The output stream this style instance writes to.

width: int#

The maximum width of the text to be produced.