Skip to content

Commit 47b2ca0

Browse files
committed
Rename locator setting method
1 parent b4fc4d3 commit 47b2ca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/contour.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ def changed(self):
964964
label.set_color(self.labelMappable.to_rgba(cv))
965965
super().changed()
966966

967-
def _set_locator_if_none(self, N):
967+
def _ensure_locator_exists(self, N):
968968
"""
969969
Set a locator on this ContourSet if it's not already set.
970970
@@ -1033,7 +1033,7 @@ def _process_contour_level_args(self, args, z_dtype):
10331033
levels_arg = [0, .5, 1] if self.filled else [.5]
10341034

10351035
if isinstance(levels_arg, Integral) or levels_arg is None:
1036-
self._set_locator_if_none(levels_arg)
1036+
self._ensure_locator_exists(levels_arg)
10371037
self.levels = self._autolev()
10381038
else:
10391039
self.levels = np.asarray(levels_arg, np.float64)

0 commit comments

Comments
 (0)