We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9e9d58 commit 5d881a2Copy full SHA for 5d881a2
lib/matplotlib/ticker.py
@@ -809,10 +809,10 @@ def __call__(self):
809
def raise_if_exceeds(self, locs):
810
'raise a RuntimeError if Locator attempts to create more than MAXTICKS locs'
811
if len(locs)>=self.MAXTICKS:
812
- raise RuntimeError(('Locator attempting to generate %d ticks from '
813
- '%s to %s: exceeds Locator.MAXTICKS') %
814
- (len(locs), locs[0], locs[-1]))
815
-
+ msg = ('Locator attempting to generate %d ticks from %s to %s: ' +
+ 'exceeds Locator.MAXTICKS') % (len(locs), locs[0], locs[-1])
+ raise RuntimeError(msg)
+
816
return locs
817
818
def view_limits(self, vmin, vmax):
0 commit comments