Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
BUG: % crashes saving figure with tex enabled
  • Loading branch information
madphysicist authored Aug 2, 2016
commit 91fac9dc33dcbc06ebcec3e93fd892448d46016b
2 changes: 1 addition & 1 deletion lib/matplotlib/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down