From 1a2100b755cc0b0c60a17bc57bb6059fbe8fcd7c Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 22 Dec 2015 16:56:38 -0500 Subject: [PATCH] Set maximum number of bins in ticking --- lib/matplotlib/ticker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py index 903d62fb5c00..22dd2b68c275 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -1431,7 +1431,7 @@ def set_params(self, **kwargs): def bin_boundaries(self, vmin, vmax): nbins = self._nbins if nbins == 'auto': - nbins = self.axis.get_tick_space() + nbins = min(self.axis.get_tick_space(), 9) scale, offset = scale_range(vmin, vmax, nbins) if self._integer: scale = max(1, scale) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy