Set the orientation of the event line. Parameters ---------- orientation : {'horizontal', 'vertical'}
(self, orientation)
| 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.""" |