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

Method get_orientation

lib/matplotlib/collections.py:1999–2003  ·  view source on GitHub ↗

Return the orientation of the event line ('horizontal' or 'vertical').

(self)

Source from the content-addressed store, hash-verified

1997 return self._is_horizontal
1998
1999 def get_orientation(self):
2000 """
2001 Return the orientation of the event line ('horizontal' or 'vertical').
2002 """
2003 return 'horizontal' if self.is_horizontal() else 'vertical'
2004
2005 def switch_orientation(self):
2006 """

Calls 1

is_horizontalMethod · 0.95