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

This Page

matplotlib.backends.backend_svg

matplotlib.backends.backend_svg.FigureCanvas

alias of FigureCanvasSVG

class matplotlib.backends.backend_svg.FigureCanvasSVG(figure)

Bases: matplotlib.backend_bases.FigureCanvasBase

filetypes = {'svg': 'Scalable Vector Graphics', 'svgz': 'Scalable Vector Graphics'}
fixed_dpi = 72
get_default_filetype()
print_svg(filename, *args, **kwargs)
print_svgz(filename, *args, **kwargs)
matplotlib.backends.backend_svg.FigureManager

alias of FigureManagerSVG

class matplotlib.backends.backend_svg.FigureManagerSVG(canvas, num)

Bases: matplotlib.backend_bases.FigureManagerBase

class matplotlib.backends.backend_svg.RendererSVG(width, height, svgwriter, basename=None, image_dpi=72)

Bases: matplotlib.backend_bases.RendererBase

close_group(s)
draw_gouraud_triangle(gc, points, colors, trans)
draw_gouraud_triangles(gc, triangles_array, colors_array, transform)
draw_image(gc, x, y, im, transform=None)
draw_markers(gc, marker_path, marker_trans, path, trans, rgbFace=None)
draw_path(gc, path, transform, rgbFace=None)
draw_path_collection(gc, master_transform, paths, all_transforms, offsets, offsetTrans, facecolors, edgecolors, linewidths, linestyles, antialiaseds, urls, offset_position)
draw_tex(gc, x, y, s, prop, angle, ismath='TeX!', mtext=None)
draw_text(gc, x, y, s, prop, angle, ismath=False, mtext=None)
finalize()
flipy()
get_canvas_width_height()
get_image_magnification()
get_text_width_height_descent(s, prop, ismath)
open_group(s, gid=None)

Open a grouping element with label s. If gid is given, use gid as the id of the group.

option_image_nocomposite()

return whether to generate a composite image from multiple images on a set of axes

option_scale_image()
class matplotlib.backends.backend_svg.XMLWriter(file)

Bases: object

close(id)
comment(comment)
data(text)
element(tag, text=None, attrib={}, **extra)
end(tag=None, indent=True)
flush()
start(tag, attrib={}, **extra)
matplotlib.backends.backend_svg.escape_attrib(s)
matplotlib.backends.backend_svg.escape_cdata(s)
matplotlib.backends.backend_svg.escape_comment(s)
matplotlib.backends.backend_svg.generate_css(attrib={})
matplotlib.backends.backend_svg.generate_transform(transform_list=[])
matplotlib.backends.backend_svg.short_float_fmt(x)

Create a short string representation of a float, which is %f formatting with trailing zeros and the decimal point removed.