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

Function add_inner_title

galleries/examples/axes_grid1/demo_axes_grid2.py:16–25  ·  view source on GitHub ↗
(ax, title, loc, **kwargs)

Source from the content-addressed store, hash-verified

14
15
16def add_inner_title(ax, title, loc, **kwargs):
17 from matplotlib.offsetbox import AnchoredText
18 from matplotlib.patheffects import withStroke
19 prop = dict(path_effects=[withStroke(foreground='w', linewidth=3)],
20 size=plt.rcParams['legend.fontsize'])
21 at = AnchoredText(title, loc=loc, prop=prop,
22 pad=0., borderpad=0.5,
23 frameon=False, **kwargs)
24 ax.add_artist(at)
25 return at
26
27
28fig = plt.figure(figsize=(6, 6))

Callers 1

demo_axes_grid2.pyFile · 0.85

Calls 2

AnchoredTextClass · 0.90
add_artistMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…