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

Method get_aspect

lib/matplotlib/axes/_base.py:1683–1689  ·  view source on GitHub ↗

Return the aspect ratio of the Axes scaling. This is either "auto" or a float giving the ratio of y/x-scale.

(self)

Source from the content-addressed store, hash-verified

1681 self._get_patches_for_fill.set_prop_cycle(prop_cycle)
1682
1683 def get_aspect(self):
1684 """
1685 Return the aspect ratio of the Axes scaling.
1686
1687 This is either "auto" or a float giving the ratio of y/x-scale.
1688 """
1689 return self._aspect
1690
1691 def set_aspect(self, aspect, adjustable=None, anchor=None, share=False):
1692 """

Callers 7

apply_aspectMethod · 0.95
_get_pan_pointsMethod · 0.95
test_square_plotFunction · 0.45
test_zoom_insetFunction · 0.45

Calls

no outgoing calls

Tested by 5

test_square_plotFunction · 0.36
test_zoom_insetFunction · 0.36