MCPcopy Index your code
hub / github.com/glamp/bashplotlib / box_text

Function box_text

bashplotlib/utils/helpers.py:81–88  ·  view source on GitHub ↗

Return text inside an ascii textbox

(text, width, offset=0)

Source from the content-addressed store, hash-verified

79
80
81def box_text(text, width, offset=0):
82 """
83 Return text inside an ascii textbox
84 """
85 box = " " * offset + "-" * (width+2) + "\n"
86 box += " " * offset + "|" + text.center(width) + "|" + "\n"
87 box += " " * offset + "-" * (width+2)
88 return box

Callers 2

_plot_scatterFunction · 0.85
plot_histFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected