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

Method _gen_axes_spines

lib/matplotlib/axes/_base.py:1273–1289  ·  view source on GitHub ↗

Returns ------- dict Mapping of spine names to `.Line2D` or `.Patch` instances that are used to draw Axes spines. In the standard Axes, spines are single line segments, but in other projections they may not be. Notes

(self, locations=None, offset=0.0, units='inches')

Source from the content-addressed store, hash-verified

1271 return mpatches.Rectangle((0.0, 0.0), 1.0, 1.0)
1272
1273 def _gen_axes_spines(self, locations=None, offset=0.0, units='inches'):
1274 """
1275 Returns
1276 -------
1277 dict
1278 Mapping of spine names to `.Line2D` or `.Patch` instances that are
1279 used to draw Axes spines.
1280
1281 In the standard Axes, spines are single line segments, but in other
1282 projections they may not be.
1283
1284 Notes
1285 -----
1286 Intended to be overridden by new projection types.
1287 """
1288 return {side: mspines.Spine.linear_spine(self, side)
1289 for side in ['left', 'right', 'bottom', 'top']}
1290
1291 def sharex(self, other):
1292 """

Callers 1

__init__Method · 0.95

Calls 1

linear_spineMethod · 0.80

Tested by

no test coverage detected