def table(data=None, rows=None, columns=None, hrows=None, brows=None, lcols=None, rcols=None, title=None, width=None, height=None, canvas_style=None): """Convenience function to create a table visualization in a single call. See :meth:`toyplot.canvas.Canvas.table`, and :class:`toyplot.canvas.Canvas` for parameter descriptions. Returns ------- canvas: :class:`toyplot.canvas.Canvas` A new canvas object. table: :class:`toyplot.axes.Table` A new set of table axes that fill the canvas. """ canvas = Canvas(width=width, height=height, style=canvas_style) table = canvas.table(data=data, rows=rows, columns=columns, hrows=hrows, brows=brows, lcols=lcols, rcols=rcols, title=title) return canvas, table
def table( data=None, rows=None, columns=None, hrows=None, brows=None, lcols=None, rcols=None, label=None, width=None, height=None, canvas_style=None): """Convenience function to create a table visualization in a single call. See :meth:`toyplot.canvas.Canvas.table`, and :class:`toyplot.canvas.Canvas` for parameter descriptions. Returns ------- canvas: :class:`toyplot.canvas.Canvas` A new canvas object. table: :class:`toyplot.axes.Table` A new set of table axes that fill the canvas. """ canvas = Canvas(width=width, height=height, style=canvas_style) table = canvas.table( data=data, rows=rows, columns=columns, hrows=hrows, brows=brows, lcols=lcols, rcols=rcols, label=label) return canvas, table
def table( data=None, brows=None, columns=None, filename=None, height=None, label=None, lcolumns=None, margin=50, rcolumns=None, rows=None, trows=None, width=None, ): """Convenience function to create a table visualization in a single call. See :meth:`toyplot.canvas.Canvas.table`, and :class:`toyplot.canvas.Canvas` for parameter descriptions. Returns ------- canvas: :class:`toyplot.canvas.Canvas` A new canvas object. table: :class:`toyplot.coordinates.Table` A new set of table axes that fill the canvas. """ canvas = Canvas( height=height, width=width, ) axes = canvas.table( brows=brows, columns=columns, data=data, filename=filename, label=label, lcolumns=lcolumns, margin=margin, rcolumns=rcolumns, rows=rows, trows=trows, ) return canvas, axes