| |
- 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, dpi, bbox, xy, width, height, edgecolor='k', facecolor='w', fill=True, text='', loc=None, transx=Transform: Bound1D: 0 1 to Bound1D: 0 1, transy=Transform: Bound1D: 0 1 to Bound1D: 0 1, transw=None, transh=None)
- auto_set_font_size(self, renderer)
- Shrink font size until text fits.
- 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_fontsize(self, size)
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_width(self)
- Return the width of the rectangle
- get_window_extent(self, renderer=None)
- 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_edgecolor(self)
- get_facecolor(self)
- get_linewidth(self)
- set_edgecolor(self, color)
- set_facecolor(self, color)
- set_fill(self, b)
- set_linewidth(self, w)
Methods inherited from matplotlib.artist.Artist:
- draw(self, renderer=None, *args, **kwargs)
- Derived classes drawing method
- get_alpha(self)
- Return the alpha value used for blending - not supported on
all backends
- get_child_artists(self)
- Return all artists contained in self
- get_clip_on(self)
- Return whether artist uses clipping
- get_dpi(self)
- Get the DPI of the display
- get_visible(self)
- return the artist's visiblity
- set_alpha(self, alpha)
- Set the alpha value used for blending - not supported on
all backends
- set_child_attr(self, attr, val)
- Set attribute attr for self, and all child artists
- set_clip_on(self, b)
- Set whether artist is clipped to bbox
- 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, axis, 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.
- get_child_artists(self)
- get_window_extent(self)
- 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 = 'small'
- 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:
- draw(self, renderer=None, *args, **kwargs)
- Derived classes drawing method
- 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_dpi(self)
- Get the DPI of the display
- get_visible(self)
- return the artist's visiblity
- set_alpha(self, alpha)
- Set the alpha value used for blending - not supported on
all backends
- set_child_attr(self, attr, val)
- Set attribute attr for self, and all child artists
- set_clip_on(self, b)
- Set whether artist is clipped to bbox
- 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'
| |