RendererD3
A modification of the base matplotlib SVG renderer to plug into the D3 library work we’ve done
text_as_path: bool
__init__(self, width, height, basename=None, image_dpi=72, *, metadata=None):
open_group(self, s, gid=None):
close_group(self, s):
write_defs(self):
option_image_nocomposite(self):
draw_path(self, gc, path, transform, rgbFace=None):
draw_markers(self, gc, marker_path, marker_trans, path, trans, rgbFace=None):
draw_path_collection(self, gc, master_transform, paths, all_transforms, offsets, offset_trans, facecolors, edgecolors, linewidths, linestyles, antialiaseds, urls, offset_position):
option_scale_image(self):
get_image_magnification(self):
draw_image(self, gc, x, y, im, transform=None):
draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None):
flipy(self):
get_canvas_width_height(self):
get_text_width_height_descent(self, s, prop, ismath):
get_toplevel(self):
insert_d3(self, root: 'D3.Frame'):
width=’%spt’ % str_width, height=’%spt’ % str_height, viewBox=’0 0 %s %s’ % (str_width, str_height), xmlns=”http://www.w3.org/2000/svg”, version=”1.1”, attrib={‘xmlns:xlink’: “http://www.w3.org/1999/xlink”}
root
:Any
:returns
:_