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

Function setup

lib/matplotlib/sphinxext/plot_directive.py:310–333  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

308
309
310def setup(app):
311 setup.app = app
312 setup.config = app.config
313 setup.confdir = app.confdir
314 app.add_directive('plot', PlotDirective)
315 app.add_config_value('plot_pre_code', None, True)
316 app.add_config_value('plot_include_source', False, True)
317 app.add_config_value('plot_html_show_source_link', True, True)
318 app.add_config_value('plot_formats', ['png', 'hires.png', 'pdf'], True)
319 app.add_config_value('plot_basedir', None, True)
320 app.add_config_value('plot_html_show_formats', True, True)
321 app.add_config_value('plot_rcparams', {}, True)
322 app.add_config_value('plot_apply_rcparams', False, True)
323 app.add_config_value('plot_working_directory', None, True)
324 app.add_config_value('plot_template', None, True)
325 app.add_config_value('plot_srcset', [], True)
326 app.connect('doctree-read', mark_plot_labels)
327 app.add_css_file('plot_directive.css')
328 app.connect('build-finished', _copy_css_file)
329 metadata = {'parallel_read_safe': True, 'parallel_write_safe': True,
330 'version': matplotlib.__version__}
331 app.connect('builder-inited', init_filename_registry)
332 app.add_env_collector(_FilenameCollector)
333 return metadata
334
335
336# -----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…