Space

class visigoth.common.space.Space(height, width=0)

Define an area of whitespace in the diagram

Parameters:height (int) – height of the whitespace in pixels
Keyword Arguments:
 width (int) – width of the whitespace in pixels

Example

(Link to open example in new tab):

Source Code (Link to Github):

# -*- coding: utf-8 -*-

from visigoth import Diagram
from visigoth.common import Space, Text

d = Diagram(fill="white")
d.add(Text("Example Space, see below...",font_height=32,text_attributes={"stroke":"darkblue"}))
d.add(Space(200,200))
d.add(Text("...did you miss it? ^^^^",font_height=32,text_attributes={"stroke":"darkblue"}))

html = d.draw(format="html")

f = open("example.html", "w")
f.write(html)
f.close()