Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 603a06b

Browse filesBrowse files
committed
use orientation value from kwargs
1 parent 9b48fd8 commit 603a06b
Copy full SHA for 603a06b

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,10 +1271,11 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
12711271
minline = (lineoffsets - linelengths).min()
12721272
maxline = (lineoffsets + linelengths).max()
12731273

1274-
if colls[0].is_horizontal():
1275-
corners = (minpos, minline), (maxpos, maxline)
1276-
else:
1274+
if (orientation is not None and
1275+
orientation.lower() == "vertical"):
12771276
corners = (minline, minpos), (maxline, maxpos)
1277+
else: # "horizontal", None or "none" (see EventCollection)
1278+
corners = (minpos, minline), (maxpos, maxline)
12781279
self.update_datalim(corners)
12791280
self.autoscale_view()
12801281

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.