MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / run

Method run

lib/matplotlib/sphinxext/figmpl_directive.py:90–110  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

88 }
89
90 def run(self):
91
92 image_node = figmplnode()
93
94 imagenm = self.arguments[0]
95 image_node['alt'] = self.options.get('alt', '')
96 image_node['align'] = self.options.get('align', None)
97 image_node['class'] = self.options.get('class', None)
98 image_node['width'] = self.options.get('width', None)
99 image_node['height'] = self.options.get('height', None)
100 image_node['scale'] = self.options.get('scale', None)
101 image_node['caption'] = self.options.get('caption', None)
102
103 # we would like uri to be the highest dpi version so that
104 # latex etc will use that. But for now, lets just make
105 # imagenm... maybe pdf one day?
106
107 image_node['uri'] = imagenm
108 image_node['srcset'] = self.options.get('srcset', None)
109
110 return [image_node]
111
112
113def _parse_srcsetNodes(st):

Callers

nothing calls this directly

Calls 2

figmplnodeClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected