@@ -907,7 +907,7 @@ def Norm(norm, *args, **kwargs):
907907 return NORMS [norm ](* args , ** kwargs )
908908
909909
910- def Locator (locator , * args , index = False , discrete = False , ** kwargs ):
910+ def Locator (locator , * args , discrete = False , ** kwargs ):
911911 """
912912 Return a `~matplotlib.ticker.Locator` instance.
913913
@@ -923,9 +923,8 @@ def Locator(locator, *args, index=False, discrete=False, **kwargs):
923923 * If a number, this specifies the *step size* between tick locations.
924924 Returns a `~matplotlib.ticker.MultipleLocator`.
925925 * If a sequence of numbers, these points are ticked. Returns
926- a `~matplotlib.ticker.FixedLocator` by default,
927- a `~proplot.ticker.IndexLocator` if `index` is ``True``, or
928- a `~proplot.ticker.DiscreteLocator` if `discrete` is ``True``.
926+ a `~matplotlib.ticker.FixedLocator` by default or a
927+ `~proplot.ticker.DiscreteLocator` if `discrete` is ``True``.
929928
930929 Otherwise, `locator` should be a string corresponding to one
931930 of the "registered" locators (see below table). If `locator` is a
@@ -1023,9 +1022,8 @@ def Locator(locator, *args, index=False, discrete=False, **kwargs):
10231022 elif isinstance (locator , Number ): # scalar variable
10241023 locator = mticker .MultipleLocator (locator , * args , ** kwargs )
10251024 elif np .iterable (locator ):
1026- if index :
1027- locator = pticker .IndexLocator (locator , * args , ** kwargs )
1028- elif discrete :
1025+ locator = np .array (locator )
1026+ if discrete :
10291027 locator = pticker .DiscreteLocator (locator , * args , ** kwargs )
10301028 else :
10311029 locator = mticker .FixedLocator (locator , * args , ** kwargs )
0 commit comments