Version 2.2.2
matplotlib

matplotlib.backends.backend_cairo

A Cairo backend for matplotlib

Author:Steve Chaplin and others

This backend depends on cairo, and either on cairocffi, or (Python 2 only) on pycairo.

class matplotlib.backends.backend_cairo.ArrayWrapper(myarray)

Thin wrapper around numpy ndarray to expose the interface expected by cairocffi. Basically replicates the array.array interface.

buffer_info()
matplotlib.backends.backend_cairo.FigureCanvas

alias of matplotlib.backends.backend_cairo.FigureCanvasCairo

class matplotlib.backends.backend_cairo.FigureCanvasCairo(figure)

Bases: matplotlib.backend_bases.FigureCanvasBase

print_pdf(fobj, *args, **kwargs)
print_png(fobj, *args, **kwargs)
print_ps(fobj, *args, **kwargs)
print_svg(fobj, *args, **kwargs)
print_svgz(fobj, *args, **kwargs)
supports_blit = False
class matplotlib.backends.backend_cairo.GraphicsContextCairo(renderer)

Bases: matplotlib.backend_bases.GraphicsContextBase

get_rgb()
restore()
set_alpha(alpha)
set_capstyle(cs)
set_clip_path(path)
set_clip_rectangle(rectangle)
set_dashes(offset, dashes)
set_foreground(fg, isRGBA=None)
set_joinstyle(js)
set_linewidth(w)
class matplotlib.backends.backend_cairo.RendererCairo(dpi)

Bases: matplotlib.backend_bases.RendererBase

static convert_path(ctx, path, transform, clip=None)
draw_image(gc, x, y, im)
draw_markers(gc, marker_path, marker_trans, path, transform, rgbFace=None)
draw_path(gc, path, transform, rgbFace=None)
draw_text(gc, x, y, s, prop, angle, ismath=False, mtext=None)
fontangles = {u'italic': <MyCairoCffi name='mock.FONT_SLANT_ITALIC' id='139936203898128'>, u'normal': <MyCairoCffi name='mock.FONT_SLANT_NORMAL' id='139936203936016'>, u'oblique': <MyCairoCffi name='mock.FONT_SLANT_OBLIQUE' id='139936203961552'>}
fontweights = {100: <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='139936203806096'>, 200: <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='139936203806096'>, 300: <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='139936203806096'>, 400: <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='139936203806096'>, 500: <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='139936203806096'>, 600: <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='139936203872592'>, 700: <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='139936203872592'>, 800: <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='139936203872592'>, 900: <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='139936203872592'>, u'black': <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='139936203872592'>, u'bold': <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='139936203872592'>, u'heavy': <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='139936203872592'>, u'light': <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='139936203806096'>, u'medium': <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='139936203806096'>, u'normal': <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='139936203806096'>, u'regular': <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='139936203806096'>, u'semibold': <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='139936203872592'>, u'ultrabold': <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='139936203872592'>, u'ultralight': <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='139936203806096'>}
get_canvas_width_height()
get_text_width_height_descent(s, prop, ismath)
new_gc()
points_to_pixels(points)
set_ctx_from_surface(surface)
set_width_height(width, height)