From 4d3226122fb318310f856cc24d40b1fb7da2233e Mon Sep 17 00:00:00 2001 From: Joseph Albert Date: Thu, 9 Feb 2017 19:49:49 -0500 Subject: [PATCH] Fixed Axes.set_yscale and Axes.set_xscale so it has the same default clipping behavior as plt.semilogy(), plt.semilogx() plt.loglog() when handing non-positive data. --- lib/matplotlib/axes/_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index d4d3578b6e51..c7913731a741 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -2943,7 +2943,7 @@ def set_xscale(self, value, **kwargs): # If the scale is being set to log, clip nonposx to prevent headaches # around zero if value.lower() == 'log' and 'nonposx' not in kwargs: - kwargs['nonposx'] = 'clip' + kwargs['nonposx'] = 'mask' g = self.get_shared_x_axes() for ax in g.get_siblings(self): @@ -3239,7 +3239,7 @@ def set_yscale(self, value, **kwargs): # If the scale is being set to log, clip nonposy to prevent headaches # around zero if value.lower() == 'log' and 'nonposy' not in kwargs: - kwargs['nonposy'] = 'clip' + kwargs['nonposy'] = 'mask' g = self.get_shared_y_axes() for ax in g.get_siblings(self): 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