MCPcopy Create free account
hub / github.com/matplotlib/matplotlib / colorbar

Method colorbar

lib/mpl_toolkits/axes_grid1/axes_grid.py:19–21  ·  view source on GitHub ↗
(self, mappable, **kwargs)

Source from the content-addressed store, hash-verified

17 super().__init__(*args, **kwargs)
18
19 def colorbar(self, mappable, **kwargs):
20 return self.get_figure(root=False).colorbar(
21 mappable, cax=self, location=self.orientation, **kwargs)
22
23
24_cbaraxes_class_factory = cbook._make_class_factory(CbarAxesBase, "Cbar{}")

Calls 1

get_figureMethod · 0.45