matplotlib.backends.backend_cairo
¶Author: | Steve Chaplin and others |
---|
This backend depends on cairo, and either on cairocffi, or (Python 2 only) on pycairo.
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
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¶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)¶matplotlib.backends.backend_cairo.
RendererCairo
(dpi)¶Bases: matplotlib.backend_bases.RendererBase
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='140504927511952'>, u'normal': <MyCairoCffi name='mock.FONT_SLANT_NORMAL' id='140504927533392'>, u'oblique': <MyCairoCffi name='mock.FONT_SLANT_OBLIQUE' id='140504927563024'>}¶fontweights
= {100: <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='140504927460816'>, 200: <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='140504927460816'>, 300: <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='140504927460816'>, 400: <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='140504927460816'>, 500: <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='140504927460816'>, 600: <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='140504927523280'>, 700: <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='140504927523280'>, 800: <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='140504927523280'>, 900: <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='140504927523280'>, u'black': <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='140504927523280'>, u'bold': <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='140504927523280'>, u'heavy': <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='140504927523280'>, u'light': <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='140504927460816'>, u'medium': <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='140504927460816'>, u'normal': <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='140504927460816'>, u'regular': <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='140504927460816'>, u'semibold': <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='140504927523280'>, u'ultrabold': <MyCairoCffi name='mock.FONT_WEIGHT_BOLD' id='140504927523280'>, u'ultralight': <MyCairoCffi name='mock.FONT_WEIGHT_NORMAL' id='140504927460816'>}¶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)¶