| |
- matplotlib.artist.Artist
-
- Table
- matplotlib.patches.Rectangle(matplotlib.patches.Patch)
-
- Cell
class Cell(matplotlib.patches.Rectangle) |
|
A cell is a Rectangle with some associated text. |
|
- Method resolution order:
- Cell
- matplotlib.patches.Rectangle
- matplotlib.patches.Patch
- matplotlib.artist.Artist
Methods defined here:
- __init__(self, xy, width, height, edgecolor='k', facecolor='w', fill=True, text='', loc=None)
- auto_set_font_size(self, renderer)
- Shrink font size until text fits.
- draw(self, renderer)
- get_fontsize(self)
- get_required_width(self, renderer)
- Get width required for this cell.
- get_text(self)
- get_text_bounds(self, renderer)
- Get text bounds in axes co-ordinates.
- set_figure(self, fig)
- set_fontsize(self, size)
- set_text_props(self, **kwargs)
- update the text properties with kwargs
- set_transform(self, trans)
Data and other attributes defined here:
- PAD = 0.10000000000000001
Methods inherited from matplotlib.patches.Rectangle:
- get_height(self)
- Return the height of the rectangle
- get_verts(self)
- Return the vertices of the rectangle
- get_width(self)
- Return the width of the rectangle
- get_x(self)
- Return the left coord of the rectangle
- get_y(self)
- Return the bottom coord of the rectangle
- set_bounds(self, l, b, w, h)
- set_height(self, h)
- Set the width rectangle
- set_width(self, w)
- Set the width rectangle
- set_x(self, x)
- Set the left coord of the rectangle
- set_y(self, y)
- Set the bottom coord of the rectangle
Methods inherited from matplotlib.patches.Patch:
- copy_properties(self, other)
- get_antialiased(self)
- get_edgecolor(self)
- get_facecolor(self)
- get_linewidth(self)
- get_window_extent(self, renderer=None)
- set_antialiased(self, aa)
- set_edgecolor(self, color)
- set_facecolor(self, color)
- set_fill(self, b)
- set_linewidth(self, w)
Methods inherited from matplotlib.artist.Artist:
- get_alpha(self)
- Return the alpha value used for blending - not supported on
all backends
- get_clip_on(self)
- Return whether artist uses clipping
- get_transform(self)
- return the Transformation instance used by this artist
- get_visible(self)
- return the artist's visiblity
- is_figure_set(self)
- is_transform_set(self)
- Artist has transform explicity let
- set_alpha(self, alpha)
- Set the alpha value used for blending - not supported on
all backends
- set_clip_box(self, clipbox)
- Set the artist's clip Bbox
- set_clip_on(self, b)
- Set whether artist uses clipping
- set_lod(self, on)
- Set Level of Detail on or off. If on, the artists may examine
things like the pixel width of the axes and draw a subset of
their contents accordingly
- set_visible(self, b)
- set the artist's visiblity
Data and other attributes inherited from matplotlib.artist.Artist:
- aname = 'Artist'
|
class Table(matplotlib.artist.Artist) |
|
Create a table of cells.
Table can have (optional) row and column headers.
Each entry in the table can be either text or patches.
Column widths and row heights for the table can be specifified.
Return value is a sequence of text, line and patch instances that make
up the table |
|
Methods defined here:
- __init__(self, ax, loc=None, bbox=None)
- add_cell(self, row, col, *args, **kwargs)
- Add a cell to the table.
- auto_set_column_width(self, col)
- auto_set_font_size(self, value=True)
- Automatically set font size.
- draw(self, renderer)
- get_celld(self)
- return a dict of cells in the table
- get_child_artists(self)
- get_window_extent(self, renderer)
- scale(self, xscale, yscale)
- Scale column widths by xscale and row heights by yscale.
- set_fontsize(self, size)
Data and other attributes defined here:
- AXESPAD = 0.02
- FONTSIZE = 10
- codes = {'best': 0, 'bottom': 17, 'bottom left': 12, 'bottom right': 13, 'center': 9, 'center left': 5, 'center right': 6, 'left': 15, 'lower center': 7, 'lower left': 3, ...}
Methods inherited from matplotlib.artist.Artist:
- get_alpha(self)
- Return the alpha value used for blending - not supported on
all backends
- get_clip_on(self)
- Return whether artist uses clipping
- get_transform(self)
- return the Transformation instance used by this artist
- get_visible(self)
- return the artist's visiblity
- is_figure_set(self)
- is_transform_set(self)
- Artist has transform explicity let
- set_alpha(self, alpha)
- Set the alpha value used for blending - not supported on
all backends
- set_clip_box(self, clipbox)
- Set the artist's clip Bbox
- set_clip_on(self, b)
- Set whether artist uses clipping
- set_figure(self, fig)
- Set the figure instance the artist belong to
- set_lod(self, on)
- Set Level of Detail on or off. If on, the artists may examine
things like the pixel width of the axes and draw a subset of
their contents accordingly
- set_transform(self, t)
- set the Transformation instance used by this artist
- set_visible(self, b)
- set the artist's visiblity
Data and other attributes inherited from matplotlib.artist.Artist:
- aname = 'Artist'
| |