From 91fac9dc33dcbc06ebcec3e93fd892448d46016b Mon Sep 17 00:00:00 2001 From: Joseph Fox-Rabinovitz Date: Tue, 2 Aug 2016 18:03:49 -0400 Subject: [PATCH] BUG: % crashes saving figure with tex enabled --- 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 a2be7cbd805e..982c867ec3b7 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -1140,7 +1140,7 @@ class PercentFormatter(Formatter): def __init__(self, xmax=100, decimals=None, symbol='%'): self.xmax = xmax + 0.0 self.decimals = decimals - self.symbol = symbol + self.symbol = symbol.replace('%', r'\%') if rcParams['text.usetex'] else symbol def __call__(self, x, pos=None): """ 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