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

Method set_orientation

lib/matplotlib/collections.py:2017–2030  ·  view source on GitHub ↗

Set the orientation of the event line. Parameters ---------- orientation : {'horizontal', 'vertical'}

(self, orientation)

Source from the content-addressed store, hash-verified

2015 self.stale = True
2016
2017 def set_orientation(self, orientation):
2018 """
2019 Set the orientation of the event line.
2020
2021 Parameters
2022 ----------
2023 orientation : {'horizontal', 'vertical'}
2024 """
2025 is_horizontal = _api.getitem_checked(
2026 {"horizontal": True, "vertical": False},
2027 orientation=orientation)
2028 if is_horizontal == self.is_horizontal():
2029 return
2030 self.switch_orientation()
2031
2032 def get_linelength(self):
2033 """Return the length of the lines used to mark each event."""

Callers 2

__init__Method · 0.95

Calls 2

is_horizontalMethod · 0.95
switch_orientationMethod · 0.95

Tested by 1