You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 2.0.0b1.post7580.dev0+ge487118
matplotlib
Fork me on GitHub

Table Of Contents

This Page

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)

Bases: object

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 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 = {'italic': <MyCairo name='mock.FONT_SLANT_ITALIC' id='140129119612824'>, 'normal': <MyCairo name='mock.FONT_SLANT_NORMAL' id='140129055426432'>, 'oblique': <MyCairo name='mock.FONT_SLANT_OBLIQUE' id='140129055438944'>}
fontweights = {100: <MyCairo name='mock.FONT_WEIGHT_NORMAL' id='140129055389008'>, 200: <MyCairo name='mock.FONT_WEIGHT_NORMAL' id='140129055389008'>, 300: <MyCairo name='mock.FONT_WEIGHT_NORMAL' id='140129055389008'>, 400: <MyCairo name='mock.FONT_WEIGHT_NORMAL' id='140129055389008'>, 500: <MyCairo name='mock.FONT_WEIGHT_NORMAL' id='140129055389008'>, 600: <MyCairo name='mock.FONT_WEIGHT_BOLD' id='140129055401520'>, 700: <MyCairo name='mock.FONT_WEIGHT_BOLD' id='140129055401520'>, 800: <MyCairo name='mock.FONT_WEIGHT_BOLD' id='140129055401520'>, 900: <MyCairo name='mock.FONT_WEIGHT_BOLD' id='140129055401520'>, 'ultralight': <MyCairo name='mock.FONT_WEIGHT_NORMAL' id='140129055389008'>, 'light': <MyCairo name='mock.FONT_WEIGHT_NORMAL' id='140129055389008'>, 'normal': <MyCairo name='mock.FONT_WEIGHT_NORMAL' id='140129055389008'>, 'medium': <MyCairo name='mock.FONT_WEIGHT_NORMAL' id='140129055389008'>, 'regular': <MyCairo name='mock.FONT_WEIGHT_NORMAL' id='140129055389008'>, 'semibold': <MyCairo name='mock.FONT_WEIGHT_BOLD' id='140129055401520'>, 'bold': <MyCairo name='mock.FONT_WEIGHT_BOLD' id='140129055401520'>, 'heavy': <MyCairo name='mock.FONT_WEIGHT_BOLD' id='140129055401520'>, 'ultrabold': <MyCairo name='mock.FONT_WEIGHT_BOLD' id='140129055401520'>, 'black': <MyCairo name='mock.FONT_WEIGHT_BOLD' id='140129055401520'>}
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)