Version 2.2.3
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)[source]

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

buffer_info()[source]
matplotlib.backends.backend_cairo.FigureCanvas

alias of matplotlib.backends.backend_cairo.FigureCanvasCairo

class matplotlib.backends.backend_cairo.FigureCanvasCairo(figure)[source]

Bases: matplotlib.backend_bases.FigureCanvasBase

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

Bases: matplotlib.backend_bases.GraphicsContextBase

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

Bases: matplotlib.backend_bases.RendererBase

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