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 34b106f

Browse filesBrowse files
dopplershiftMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #9612: Only set view/data intervals if axis is set in AutoDateLocator
1 parent d78fb0e commit 34b106f
Copy full SHA for 34b106f

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-2
lines changed

‎lib/matplotlib/dates.py

Copy file name to clipboardExpand all lines: lib/matplotlib/dates.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,8 +1183,9 @@ def get_locator(self, dmin, dmax):
11831183

11841184
locator.set_axis(self.axis)
11851185

1186-
locator.set_view_interval(*self.axis.get_view_interval())
1187-
locator.set_data_interval(*self.axis.get_data_interval())
1186+
if self.axis is not None:
1187+
locator.set_view_interval(*self.axis.get_view_interval())
1188+
locator.set_data_interval(*self.axis.get_data_interval())
11881189
return locator
11891190

11901191

0 commit comments

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