In [1]:
import toyplot
In [2]:
canvas = toyplot.Canvas()
table = canvas.table(rows=4, columns=4, hrows=2, brows=2, lcols=2, rcols=2)
table.grid.hlines[...] = False
table.grid.vlines[...] = False
table.top.cells.bstyle = {"fill":"#f88", "stroke":"none"}
table.top.grid.hlines[...] = "single"
table.top.grid.vlines[...] = "single"
table.right.cells.bstyle = {"fill":"#8f8", "stroke":"none"}
table.right.grid.hlines[...] = "single"
table.right.grid.vlines[...] = "single"
table.bottom.cells.bstyle = {"fill":"#88f", "stroke":"none"}
table.bottom.grid.hlines[...] = "single"
table.bottom.grid.vlines[...] = "single"
table.left.cells.bstyle = {"fill":"#ff8", "stroke":"none"}
table.left.grid.hlines[...] = "single"
table.left.grid.vlines[...] = "single"
In [3]:
canvas = toyplot.Canvas()
table = canvas.table(rows=4, columns=4, hrows=2, brows=2, lcols=2, rcols=2)
table.grid.hlines[...] = False
table.grid.vlines[...] = False
table.top.left.cells.bstyle = {"fill":"#f88", "stroke":"none"}
table.top.left.grid.hlines[...] = "single"
table.top.left.grid.vlines[...] = "single"
table.top.right.cells.bstyle = {"fill":"#8f8", "stroke":"none"}
table.top.right.grid.hlines[...] = "single"
table.top.right.grid.vlines[...] = "single"
table.bottom.right.cells.bstyle = {"fill":"#88f", "stroke":"none"}
table.bottom.right.grid.hlines[...] = "single"
table.bottom.right.grid.vlines[...] = "single"
table.bottom.left.cells.bstyle = {"fill":"#ff8", "stroke":"none"}
table.bottom.left.grid.hlines[...] = "single"
table.bottom.left.grid.vlines[...] = "single"
In [4]:
canvas = toyplot.Canvas()
table = canvas.table(rows=4, columns=4, hrows=2, brows=2, lcols=2, rcols=2)
table.grid.hlines[...] = False
table.grid.vlines[...] = False
table.top.cells.bstyle = {"fill":"#f88", "stroke":"none"}
table.right.cells.bstyle = {"fill":"#8f8", "stroke":"none"}
table.bottom.cells.bstyle = {"fill":"#88f", "stroke":"none"}
table.left.cells.bstyle = {"fill":"#ff8", "stroke":"none"}
table.body.grid.hlines[...] = "single"
table.body.grid.vlines[...] = "single"
In [ ]: