graphid.util.mpl_plottool module

Port of the less useful parts of plottool that util_graphviz still depends on

TODO: try and depricate or refactor these

graphid.util.mpl_plottool.get_plotdat_dict(ax)[source]

sets internal property to a matplotlib axis

graphid.util.mpl_plottool.set_plotdat(ax, key, val)[source]

sets internal property to a matplotlib axis

graphid.util.mpl_plottool.make_bbox(bbox, theta=0, bbox_color=None, ax=None, lw=2, alpha=1.0, align='center', fill=None, **kwargs)[source]
graphid.util.mpl_plottool.get_axis_xy_width_height(ax=None, xaug=0, yaug=0, waug=0, haug=0)[source]

gets geometry of a subplot

graphid.util.mpl_plottool.ax_absolute_text(x_, y_, txt, ax=None, roffset=None, **kwargs)[source]

Base function for text

Kwargs:

horizontalalignment in [‘right’, ‘center’, ‘left’], verticalalignment in [‘top’] color

graphid.util.mpl_plottool.cartoon_stacked_rects(xy, width, height, num=4, shift=None, **kwargs)[source]

pt.figure() xy = (.5, .5) width = .2 height = .2 ax = pt.gca() ax.add_collection(col)

graphid.util.mpl_plottool.parse_fontkw(**kwargs)[source]
Kwargs:

fontsize, fontfamilty, fontproperties

Example

>>> # xdoctest: +REQUIRES(module:matplotlib)
>>> parse_fontkw()